diff options
author | Andreas Schneider <mail@cynapses.org> | 2010-05-10 15:27:40 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2010-05-10 15:53:46 +0200 |
commit | 6fd8de337628526ad841130e02b42fa3e1675c4e (patch) | |
tree | f5f811d416363f5066bbca89738003f9d59eceff | |
parent | 5fe99f8b094e822f1d6322e71d4185510aa9ea59 (diff) | |
download | libssh-6fd8de337628526ad841130e02b42fa3e1675c4e.tar.gz libssh-6fd8de337628526ad841130e02b42fa3e1675c4e.tar.xz libssh-6fd8de337628526ad841130e02b42fa3e1675c4e.zip |
Added configure checks for _vsnprintf_s and strncpy.
-rw-r--r-- | ConfigureChecks.cmake | 7 | ||||
-rw-r--r-- | config.h.cmake | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 03b55282..f4ef836f 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -41,9 +41,12 @@ if (WIN32) check_function_exists(vsnprintf HAVE_VSNPRINTF) if(NOT HAVE_VSNPRINTF) - check_function_exists(_vsnprintf HAVE__VSNPRINTF) + check_function_exists(_vsnprintf_s HAVE__VSNPRINTF_S) + check_function_exists(_vsnprintf HAVE__VSNPRINTF) endif(NOT HAVE_VSNPRINTF) - + + check_function_exists(strncpy HAVE_STRNCPY) + set(HAVE_SELECT TRUE) endif (WIN32) diff --git a/config.h.cmake b/config.h.cmake index 6aaab2f2..4b96e28c 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -43,6 +43,12 @@ /* Define to 1 if you have the `_vsnprintf' function. */ #cmakedefine HAVE__VSNPRINTF +/* Define to 1 if you have the `_vsnprintf_s' function. */ +#cmakedefine HAVE__VSNPRINTF_S + +/* Define to 1 if you have the `strncpy' function. */ +#cmakedefine HAVE_STRNCPY + /* Define to 1 if you have the `cfmakeraw' function. */ #cmakedefine HAVE_CFMAKERAW 1 |