mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Make WIN32_WINNT defines conditional
Requested by Gisle Vanem on tor-dev. I'm not quite sure this is the right solution, but it's probably harmless.
This commit is contained in:
@@ -9,8 +9,12 @@
|
||||
#include "orconfig.h"
|
||||
#include "torint.h"
|
||||
#ifdef MS_WINDOWS
|
||||
#ifndef WIN32_WINNT
|
||||
#define WIN32_WINNT 0x400
|
||||
#endif
|
||||
#ifndef _WIN32_WINNT
|
||||
#define _WIN32_WINNT 0x400
|
||||
#endif
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#if defined(_MSC_VER) && (_MSC_VER < 1300)
|
||||
#include <winsock.h>
|
||||
|
||||
Reference in New Issue
Block a user