]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
More windows header stuff. Will it work this time?
authorNick Mathewson <nickm@torproject.org>
Thu, 9 Jul 2015 18:58:16 +0000 (14:58 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 9 Jul 2015 18:58:16 +0000 (14:58 -0400)
configure.ac

index 6fbd489c65b27482f6dc8054462494dad3b4217b..e1501463c59f37ef9d854014b1fbd6af92c44121 100644 (file)
@@ -335,11 +335,25 @@ bwin32=true; AC_MSG_RESULT([yes]),
 bwin32=false; AC_MSG_RESULT([no]))
 fi
 
-if test "$bwin32" = true; then
-  AC_DEFINE(WIN32_LEAN_AND_MEAN, 1, [Defined to avoid including some windows headers])
-  AC_DEFINE(WINVER, 0x0501, [Defined to access windows functions and definitions for >=WinXP])
-  AC_DEFINE(_WIN32_WINNT, 0x0501, [Defined to access windows functions and definitions for >=WinXP])
-fi
+AH_BOTTOM([
+#ifdef _WIN32
+/* Defined to access windows functions and definitions for >=WinXP */
+# ifndef WINVER
+#  define WINVER 0x0501
+# endif
+
+/* Defined to access _other_ windows functions and definitions for >=WinXP */
+# ifndef _WIN32_WINNT
+#  define _WIN32_WINNT 0x0501
+# endif
+
+/* Defined to avoid including some windows headers as part of Windows.h */
+# ifndef WIN32_LEAN_AND_MEAN
+#  define WIN32_LEAN_AND_MEAN 1
+# endif
+#endif
+])
+
 
 AM_CONDITIONAL(BUILD_NT_SERVICES, test x$bwin32 = xtrue)