mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[meson] Check for vsnprintf fixes
This commit is contained in:
parent
ec8c8debd4
commit
77f8db01d2
@ -501,8 +501,9 @@ if compiler.has_function('snprintf', prefix : '#include <stdio.h>')
|
|||||||
conf_data.set10('HAVE_SNPRINTF', 1)
|
conf_data.set10('HAVE_SNPRINTF', 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if compiler.has_function('vsnprintf', prefix : '#include <stdarg.h>')
|
if compiler.has_function('vsnprintf', prefix : '#include <stdio.h>\n#include <stdarg.h>', args: '-D_ISOC99_SOURCE')
|
||||||
conf_data.set10('HAVE_VSNPRINTF', 1)
|
conf_data.set10('HAVE_VSNPRINTF', 1)
|
||||||
|
conf_data.set10('HAVE_C99_VSNPRINTF', 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if compiler.has_function('asprintf', prefix : '#include <stdio.h>', args: '-D_GNU_SOURCE')
|
if compiler.has_function('asprintf', prefix : '#include <stdio.h>', args: '-D_GNU_SOURCE')
|
||||||
|
Loading…
Reference in New Issue
Block a user