mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[meson] Check typeof
This commit is contained in:
parent
6602557d0e
commit
d0e59d301b
@ -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
|
||||
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user