浏览代码

Remove all instances of WIN32_WINNT (without leading _)

We started adding it in 59e2c77824840f back in 2004, 8 years and 3
days ago.  It's time to deprogram ourselves from this cargo cult.
Nick Mathewson 13 年之前
父节点
当前提交
9ffccb3f49
共有 6 个文件被更改,包括 0 次插入17 次删除
  1. 0 2
      configure.in
  2. 0 3
      src/common/aes.c
  3. 0 3
      src/common/compat.h
  4. 0 3
      src/common/crypto.c
  5. 0 3
      src/common/tortls.c
  6. 0 3
      src/or/or.h

+ 0 - 2
configure.in

@@ -796,7 +796,6 @@ AC_CHECK_TYPES([struct in6_addr, struct sockaddr_in6, sa_family_t], , ,
 #include <sys/socket.h>
 #endif
 #ifdef _WIN32
-#define WIN32_WINNT 0x400
 #define _WIN32_WINNT 0x400
 #define WIN32_LEAN_AND_MEAN
 #if defined(_MSC_VER) && (_MSC_VER < 1300)
@@ -821,7 +820,6 @@ AC_CHECK_MEMBERS([struct in6_addr.s6_addr32, struct in6_addr.s6_addr16, struct s
 #include <sys/socket.h>
 #endif
 #ifdef _WIN32
-#define WIN32_WINNT 0x400
 #define _WIN32_WINNT 0x400
 #define WIN32_LEAN_AND_MEAN
 #if defined(_MSC_VER) && (_MSC_VER < 1300)

+ 0 - 3
src/common/aes.c

@@ -12,9 +12,6 @@
 #include "orconfig.h"
 
 #ifdef _WIN32 /*wrkard for dtls1.h >= 0.9.8m of "#include <winsock.h>"*/
- #ifndef WIN32_WINNT
- #define WIN32_WINNT 0x400
- #endif
  #ifndef _WIN32_WINNT
  #define _WIN32_WINNT 0x400
  #endif

+ 0 - 3
src/common/compat.h

@@ -9,9 +9,6 @@
 #include "orconfig.h"
 #include "torint.h"
 #ifdef _WIN32
-#ifndef WIN32_WINNT
-#define WIN32_WINNT 0x400
-#endif
 #ifndef _WIN32_WINNT
 #define _WIN32_WINNT 0x400
 #endif

+ 0 - 3
src/common/crypto.c

@@ -13,9 +13,6 @@
 #include "orconfig.h"
 
 #ifdef _WIN32
-#ifndef WIN32_WINNT
-#define WIN32_WINNT 0x400
-#endif
 #ifndef _WIN32_WINNT
 #define _WIN32_WINNT 0x400
 #endif

+ 0 - 3
src/common/tortls.c

@@ -22,9 +22,6 @@
 
 #include <assert.h>
 #ifdef _WIN32 /*wrkard for dtls1.h >= 0.9.8m of "#include <winsock.h>"*/
- #ifndef WIN32_WINNT
- #define WIN32_WINNT 0x400
- #endif
  #ifndef _WIN32_WINNT
  #define _WIN32_WINNT 0x400
  #endif

+ 0 - 3
src/or/or.h

@@ -23,9 +23,6 @@
 #endif
 
 #ifdef _WIN32
-#ifndef WIN32_WINNT
-#define WIN32_WINNT 0x400
-#endif
 #ifndef _WIN32_WINNT
 #define _WIN32_WINNT 0x400
 #endif