1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-08-08 19:02:07 +03:00

moved CRT_SECURE_NO_DEPRECATE define up so its defined before the winsock headers are included.

This commit is contained in:
Guenter Knauf
2010-06-03 03:12:20 +02:00
parent 2683fddcca
commit 2996e02482

View File

@@ -4,6 +4,9 @@
#ifndef WIN32
#define WIN32
#endif
#ifndef _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE 1
#endif /* _CRT_SECURE_NO_DEPRECATE */
#include <winsock2.h>
#include <mswsock.h>
#include <ws2tcpip.h>
@@ -19,9 +22,6 @@
#define HAVE_SELECT
#ifdef _MSC_VER
#ifndef _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE 1
#endif /* _CRT_SECURE_NO_DEPRECATE */
#define snprintf _snprintf
#if _MSC_VER < 1500
#define vsnprintf _vsnprintf