1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-23 00:45:39 +00:00

[meson] Check typeof

This commit is contained in:
Witold Filipczyk 2022-01-22 15:00:10 +01:00
parent 6602557d0e
commit d0e59d301b
2 changed files with 7 additions and 0 deletions

View File

@ -825,6 +825,9 @@
/* Define to 1 if you have the `mkstemps' function. */
#mesondefine HAVE_MKSTEMPS
/* Define to 1 if you have `typeof` */
#mesondefine HAVE_TYPEOF
/* Define as const if the declaration of iconv() needs const. */
#mesondefine ICONV_CONST

View File

@ -698,6 +698,10 @@ if compiler.has_function('mkstemps', prefix: '#include <stdlib.h>', args: '-D_GN
conf_data.set('HAVE_MKSTEMPS', 1)
endif
if compiler.compiles('int a; typeof(a) b;')
conf_data.set('HAVE_TYPEOF', 1)
endif
conf_data.set('ICONV_CONST', true)
sysconfdir = get_option('prefix') / get_option('sysconfdir')/'elinks'