moved CRT_SECURE_NO_DEPRECATE define up so its defined before the winsock headers are included.
Этот коммит содержится в:
родитель
2683fddcca
Коммит
2996e02482
@ -4,6 +4,9 @@
|
|||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#define WIN32
|
#define WIN32
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef _CRT_SECURE_NO_DEPRECATE
|
||||||
|
#define _CRT_SECURE_NO_DEPRECATE 1
|
||||||
|
#endif /* _CRT_SECURE_NO_DEPRECATE */
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <mswsock.h>
|
#include <mswsock.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
@ -19,9 +22,6 @@
|
|||||||
#define HAVE_SELECT
|
#define HAVE_SELECT
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#ifndef _CRT_SECURE_NO_DEPRECATE
|
|
||||||
#define _CRT_SECURE_NO_DEPRECATE 1
|
|
||||||
#endif /* _CRT_SECURE_NO_DEPRECATE */
|
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
#if _MSC_VER < 1500
|
#if _MSC_VER < 1500
|
||||||
#define vsnprintf _vsnprintf
|
#define vsnprintf _vsnprintf
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user