[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Remove all instances of WIN32_WINNT (without leading _)
commit 9ffccb3f49e1c73b34c0bd41fd3bc7116afab4b7
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Mon May 14 13:36:52 2012 -0400
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.
---
configure.in | 2 --
src/common/aes.c | 3 ---
src/common/compat.h | 3 ---
src/common/crypto.c | 3 ---
src/common/tortls.c | 3 ---
src/or/or.h | 3 ---
6 files changed, 0 insertions(+), 17 deletions(-)
diff --git a/configure.in b/configure.in
index f4e0fea..92b7acb 100644
--- a/configure.in
+++ b/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)
diff --git a/src/common/aes.c b/src/common/aes.c
index a9a0188..692f1bc 100644
--- a/src/common/aes.c
+++ b/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
diff --git a/src/common/compat.h b/src/common/compat.h
index 65e6cb4..f17aa05 100644
--- a/src/common/compat.h
+++ b/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
diff --git a/src/common/crypto.c b/src/common/crypto.c
index e37b282..8b1c9a6 100644
--- a/src/common/crypto.c
+++ b/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
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 12d982d..180efa6 100644
--- a/src/common/tortls.c
+++ b/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
diff --git a/src/or/or.h b/src/or/or.h
index b8fee64..ad0ac6d 100644
--- a/src/or/or.h
+++ b/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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits