_WINSOCK_DEPRECATED_NO_WARNINGS was defined before including Winsock gear to avoid the warnings and the rewrite. Being tracked at GitHub, Issue 19, https://github.com/weidai11/cryptopp/issues/19

pull/35/head
Jeffrey Walton 2015-07-27 18:05:08 -04:00
parent d76a974625
commit 05076dbdea
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@
# if defined(_WINSOCKAPI_) && !defined(_WINSOCK2API_) # if defined(_WINSOCKAPI_) && !defined(_WINSOCK2API_)
# error Winsock 1 is not supported by this library. Please include this file or winsock2.h before windows.h. # error Winsock 1 is not supported by this library. Please include this file or winsock2.h before windows.h.
# endif # endif
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#include <winsock2.h> #include <winsock2.h>
#include "winpipes.h" #include "winpipes.h"
#else #else