build-sys: meson: restore big endian detection

Autotools used AC_C_BIGENDIAN to set WORDS_BIGENDIAN, add Meson implementation.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/572>
This commit is contained in:
Igor V. Kovalenko 2021-06-03 09:43:10 +03:00 committed by PulseAudio Marge Bot
parent c096193512
commit a7d44750af

View file

@ -169,6 +169,10 @@ cdata.set('OS_IS_FREEBSD', 0)
platform_socket_dep = []
platform_dep = []
if host_machine.endian() == 'big'
cdata.set('WORDS_BIGENDIAN', 1)
endif
# FIXME: This was not tested. Maybe some flags should better be CFLAGS,
# rather than ending up in the config.h file?
if host_machine.system() == 'darwin'