X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=meson.build;h=05095329fa31d000b03eccbca18139192b6e3b8e;hb=73974b9b3e3deb6051fc01c0ea54b11530a90ee1;hp=960e4eac91d338b1898fd2f479f24b74369d5a5e;hpb=e375887f911f81b8350183ac1ef37b59f3327120;p=plocate diff --git a/meson.build b/meson.build index 960e4ea..0509532 100644 --- a/meson.build +++ b/meson.build @@ -12,6 +12,9 @@ atomicdep = cxx.find_library('atomic', required: false) if not uringdep.found() add_project_arguments('-DWITHOUT_URING', language: 'cpp') endif +if cxx.has_header('endian.h') + add_project_arguments('-DHAS_ENDIAN_H', language: 'cpp') +endif # Function multiversioning is x86-only _and_ not available on certain targets # (they need “ifunc”, indirect functions, a GNU extension).