mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
meson.build: define WORDS_BIGENDIAN if need be
Drop the Apple-specific defines from config.h.meson - this was never true in the meson build anyway as nothing set the AC_APPLE_UNIVERSAL_BUILD and the else condition only undef'd WORDS_BIGENDIAN if... it was not defined. Drop this and replace it with a meson endian check. There is only one source file that checks for this #define in spa/plugins/alsa/acp/compat.h, let's hope nothing breaks here.
This commit is contained in:
parent
14eb43ea86
commit
478e1cc516
2 changed files with 4 additions and 12 deletions
|
|
@ -1,8 +1,5 @@
|
|||
/* config.h. Generated by meson. */
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
#mesondefine AC_APPLE_UNIVERSAL_BUILD
|
||||
|
||||
/* poll doesn't work on devices */
|
||||
#mesondefine BROKEN_POLL
|
||||
|
||||
|
|
@ -429,15 +426,7 @@
|
|||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD
|
||||
# if defined __BIG_ENDIAN__
|
||||
# define WORDS_BIGENDIAN 1
|
||||
# endif
|
||||
#else
|
||||
# ifndef WORDS_BIGENDIAN
|
||||
# undef WORDS_BIGENDIAN
|
||||
# endif
|
||||
#endif
|
||||
#mesondefine WORDS_BIGENDIAN
|
||||
|
||||
/* Enable large inode numbers on Mac OS X 10.5. */
|
||||
#ifndef _DARWIN_USE_64_BIT_INODE
|
||||
|
|
|
|||
|
|
@ -206,6 +206,9 @@ cdata.set('MEMORY_ALIGNMENT_MALLOC', 1)
|
|||
cdata.set_quoted('PA_ALSA_PATHS_DIR', alsadatadir / 'paths')
|
||||
cdata.set_quoted('PA_ALSA_PROFILE_SETS_DIR', alsadatadir / 'profile-sets')
|
||||
|
||||
if host_machine.endian() == 'big'
|
||||
cdata.set('WORDS_BIGENDIAN', 1)
|
||||
endif
|
||||
|
||||
check_headers = [['dlfcn.h','HAVE_DLFCN_H'],
|
||||
['inttypes.h', 'HAVE_INTTYPES_H'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue