Browse Source

fix win build of iguana: prevent winsock.h inclusion in dtls1.h

patch-5
DeckerSU 6 years ago
parent
commit
efd9eab3bd
  1. 4
      OSlibs/win/mingw.h
  2. 8
      crypto777/OS_nonportable.c

4
OSlibs/win/mingw.h

@ -5,8 +5,8 @@
#include <io.h>
#define _USE_W32_SOCKETS 1
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
//#define WIN32_LEAN_AND_MEAN
//#include <winsock2.h>
#include <windows.h>
#define PTW32_STATIC_LIB
#include "pthread.h"

8
crypto777/OS_nonportable.c

@ -26,10 +26,10 @@
* not from the mingw header, so we need to include the windows header
* if we are compiling in windows 64bit
*/
//#if defined(_M_X64)
//#define WIN32_LEAN_AND_MEAN
//#include <WinSock2.h>
//#endif
#if defined(_M_X64)
#define WIN32_LEAN_AND_MEAN
#include <WinSock2.h>
#endif
#include "OS_portable.h"

Loading…
Cancel
Save