summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-05-14 12:46:17 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-05-14 12:46:17 +0200
commitabc61fa1ccfa5472ab4dbc0088663f8b26582196 (patch)
treee1f9fe451ec0c6e50b0f2e1e1f334beb31fb94d3 /ConfigureChecks.cmake
parente94bff02ba513628088fd112c5c7cbd9f9a4a57f (diff)
Fix build on VC7
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index f4ef836f..fd31e4ec 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -44,7 +44,11 @@ if (WIN32)
check_function_exists(_vsnprintf_s HAVE__VSNPRINTF_S)
check_function_exists(_vsnprintf HAVE__VSNPRINTF)
endif(NOT HAVE_VSNPRINTF)
-
+ check_function_exists(snprintf HAVE_SNPRINTF)
+ if(NOT HAVE_SNPRINTF)
+ check_function_exists(_snprintf HAVE__SNPRINTF)
+ check_function_exists(_snprintf_s HAVE__SNPRINTF_S)
+ endif(NOT HAVE_HAVE_SNPRINTF)
check_function_exists(strncpy HAVE_STRNCPY)
set(HAVE_SELECT TRUE)