aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-06-07 11:14:03 -0700
committerChris Robinson <[email protected]>2015-06-07 11:16:11 -0700
commit5543000c5b15eb14217e9f9e817377da6d786c2e (patch)
tree37f25ff78d0ee2644a78a2329c58407b950770f3
parent9f49ac0fda04cc4bdc9e47a0d3c026722283c3a4 (diff)
Check for snprintf in stdio.h
This works better for VS2015, which adds support for the function.
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 80bcadb8..58582f83 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -421,7 +421,7 @@ IF(NOT HAVE_STRNCASECMP)
ADD_DEFINITIONS(-Dstrncasecmp=_strnicmp)
ENDIF()
-CHECK_FUNCTION_EXISTS(snprintf HAVE_SNPRINTF)
+CHECK_SYMBOL_EXISTS(snprintf stdio.h HAVE_SNPRINTF)
IF(NOT HAVE_SNPRINTF)
CHECK_FUNCTION_EXISTS(_snprintf HAVE__SNPRINTF)
IF(NOT HAVE__SNPRINTF)