mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 08:10:11 +01:00
meson: use cc.check_header instead of open coding
Signed-off-by: Dylan Baker <dylan@pnwbakers.com> Reviewed-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
52b96a6fbf
commit
f9539d4128
1 changed files with 1 additions and 2 deletions
|
|
@ -205,8 +205,7 @@ else
|
|||
endif
|
||||
|
||||
foreach header : ['sys/select.h', 'alloca.h']
|
||||
config.set10('HAVE_' + header.underscorify().to_upper(),
|
||||
cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header)))
|
||||
config.set10('HAVE_' + header.underscorify().to_upper(), cc.check_header(header))
|
||||
endforeach
|
||||
|
||||
if (cc.has_header_symbol('sys/sysmacros.h', 'major') and
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue