diff options
author | Chris Robinson <[email protected]> | 2015-06-07 11:14:03 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-06-07 11:16:11 -0700 |
commit | 5543000c5b15eb14217e9f9e817377da6d786c2e (patch) | |
tree | 37f25ff78d0ee2644a78a2329c58407b950770f3 /CMakeLists.txt | |
parent | 9f49ac0fda04cc4bdc9e47a0d3c026722283c3a4 (diff) |
Check for snprintf in stdio.h
This works better for VS2015, which adds support for the function.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
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) |