_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

This commit is contained in:
Jeffrey Walton 2015-07-27 18:05:08 -04:00
parent d76a974625
commit 05076dbdea

View File

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