1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-05 01:02:39 +03:00

cmake: Fixed msvc posix warnings and unsecure functions.

This commit is contained in:
Andreas Schneider
2011-01-02 19:13:07 +01:00
parent 3f538b3ddd
commit 2b6fa19fe5
2 changed files with 5 additions and 8 deletions

View File

@@ -46,9 +46,6 @@
# undef inline
# define inline __inline
# undef strdup
# define strdup _strdup
# define strcasecmp _stricmp
# define strncasecmp _strnicmp
# define strtoull _strtoui64
@@ -87,9 +84,6 @@
# endif /* HAVE__VSNPRINTF */
# endif /* HAVE__VSNPRINTF_S */
# ifndef HAVE_STRNCPY
# define strncpy(d, s, n) strncpy_s((d), (n), (s), _TRUNCATE)
# endif
# endif /* _MSC_VER */
#else /* _WIN32 */