mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
Added configure checks for _vsnprintf_s and strncpy.
This commit is contained in:
@@ -41,9 +41,12 @@ if (WIN32)
|
|||||||
|
|
||||||
check_function_exists(vsnprintf HAVE_VSNPRINTF)
|
check_function_exists(vsnprintf HAVE_VSNPRINTF)
|
||||||
if(NOT 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)
|
endif(NOT HAVE_VSNPRINTF)
|
||||||
|
|
||||||
|
check_function_exists(strncpy HAVE_STRNCPY)
|
||||||
|
|
||||||
set(HAVE_SELECT TRUE)
|
set(HAVE_SELECT TRUE)
|
||||||
endif (WIN32)
|
endif (WIN32)
|
||||||
|
|
||||||
|
|||||||
@@ -43,6 +43,12 @@
|
|||||||
/* Define to 1 if you have the `_vsnprintf' function. */
|
/* Define to 1 if you have the `_vsnprintf' function. */
|
||||||
#cmakedefine HAVE__VSNPRINTF
|
#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. */
|
/* Define to 1 if you have the `cfmakeraw' function. */
|
||||||
#cmakedefine HAVE_CFMAKERAW 1
|
#cmakedefine HAVE_CFMAKERAW 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user