mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-21 07:00:08 -05:00
meson.build: Test for ptrdiff_t in <stddef.h>
The build scripts assumed ptrdiff_t to just be around by default. But POSIX specifies ptrdiff_t to be defined in <stddef.h>, which is now included from the test. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
This commit is contained in:
parent
59fa57f2a3
commit
cc5a155c9b
1 changed files with 3 additions and 2 deletions
|
|
@ -70,6 +70,7 @@ check_headers = [['dlfcn.h','HAVE_DLFCN_H'],
|
||||||
['inttypes.h', 'HAVE_INTTYPES_H'],
|
['inttypes.h', 'HAVE_INTTYPES_H'],
|
||||||
['memory.h', 'HAVE_MEMORY_H'],
|
['memory.h', 'HAVE_MEMORY_H'],
|
||||||
['poll.h', 'HAVE_POLL_H'],
|
['poll.h', 'HAVE_POLL_H'],
|
||||||
|
['stddef.h', 'HAVE_STDDEF_H'],
|
||||||
['stdint.h', 'HAVE_STDINT_H'],
|
['stdint.h', 'HAVE_STDINT_H'],
|
||||||
['stdio_ext.h', 'HAVE_STDIO_EXT_H'],
|
['stdio_ext.h', 'HAVE_STDIO_EXT_H'],
|
||||||
['strings.h', 'HAVE_STRINGS_H'],
|
['strings.h', 'HAVE_STRINGS_H'],
|
||||||
|
|
@ -113,8 +114,8 @@ if cc.has_function('clock_gettime', prefix : '#include <time.h>')
|
||||||
cdata.set('HAVE_CLOCK_GETTIME', 1)
|
cdata.set('HAVE_CLOCK_GETTIME', 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if cc.has_type('ptrdiff_t')
|
if cc.has_type('ptrdiff_t', prefix : '#include <stddef.h>')
|
||||||
cdata.set('HAVE_PTRDIFF_T')
|
cdata.set('HAVE_PTRDIFF_T', 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if cc.has_function('mkstemp', prefix : '#include <stdlib.h>')
|
if cc.has_function('mkstemp', prefix : '#include <stdlib.h>')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue