mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
meson: Check for HAVE_TYPEOF
Without this, exa's gc swap macros trigger gcc's -Wdiscarded-qualifiers. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
@@ -11,7 +11,10 @@ dri_dep = dependency('dri', required: build_dri2 or build_dri3)
|
||||
conf_data = configuration_data()
|
||||
conf_data.set('_DIX_CONFIG_H_', '1')
|
||||
|
||||
|
||||
conf_data.set('HAVE_TYPEOF', cc.compiles('''
|
||||
int foo(int bar) { typeof(bar) baz = 1; return baz; }
|
||||
''',
|
||||
name: 'typeof()'))
|
||||
|
||||
conf_data.set('MONOTONIC_CLOCK', cc.compiles('''
|
||||
#define _POSIX_C_SOURCE 200112L
|
||||
|
||||
Reference in New Issue
Block a user