meson: drop checks for things we don't use
This was ported over from the AC_CHECK_{FUNCS,HEADERS} lists in configure.ac, but I never actually checked if the resulting CPP defines are used. Turns out, lots of symbols, not a lot of define usage. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
4e5254dbf3
commit
b3dd02236c
1 changed files with 0 additions and 25 deletions
25
meson.build
25
meson.build
|
@ -136,38 +136,13 @@ foreach header : [
|
|||
endforeach
|
||||
|
||||
foreach sym : [
|
||||
'dup2',
|
||||
'fork',
|
||||
'getcwd',
|
||||
'getmntent',
|
||||
'getmntinfo',
|
||||
'gettimeofday',
|
||||
'memmove',
|
||||
'memset',
|
||||
'mkdir',
|
||||
'realpath',
|
||||
'regcomp',
|
||||
'rmdir',
|
||||
'setenv',
|
||||
'setlocale',
|
||||
'strcasecmp',
|
||||
'strchr',
|
||||
'strcspn',
|
||||
'strdup',
|
||||
'strerror',
|
||||
'strndup',
|
||||
'strnlen',
|
||||
'strnlen',
|
||||
'strrchr',
|
||||
'strsep',
|
||||
'strsep',
|
||||
'strstr',
|
||||
'strtol',
|
||||
'swprintf',
|
||||
'tcflush',
|
||||
'tcflush',
|
||||
'uname',
|
||||
'wcwidth',
|
||||
]
|
||||
have = cc.has_function(sym, args : '-D_GNU_SOURCE')
|
||||
conf.set10('HAVE_' + sym.to_upper(), have)
|
||||
|
|
Loading…
Add table
Reference in a new issue