mirror of https://github.com/akheron/jansson
Merge e19f2ffa63
into 02464862ed
This commit is contained in:
commit
24063b9316
|
@ -100,6 +100,7 @@ include (CheckFunctionExists)
|
||||||
include (CheckFunctionKeywords)
|
include (CheckFunctionKeywords)
|
||||||
include (CheckIncludeFiles)
|
include (CheckIncludeFiles)
|
||||||
include (CheckTypeSize)
|
include (CheckTypeSize)
|
||||||
|
include (CheckSymbolExists)
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
# Turn off Microsofts "security" warnings.
|
# Turn off Microsofts "security" warnings.
|
||||||
|
@ -304,8 +305,8 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Find our snprintf
|
# Find our snprintf
|
||||||
check_function_exists (snprintf HAVE_SNPRINTF)
|
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
|
||||||
check_function_exists (_snprintf HAVE__SNPRINTF)
|
check_symbol_exists(_snprintf stdio.h HAVE__SNPRINTF)
|
||||||
|
|
||||||
if (HAVE_SNPRINTF)
|
if (HAVE_SNPRINTF)
|
||||||
set(JSON_SNPRINTF snprintf)
|
set(JSON_SNPRINTF snprintf)
|
||||||
|
|
Loading…
Reference in New Issue