Browse Source

Patch based on post by Mike C to or-dev; special-case based on use of MSVC, rather than on MS_WINDOWS, so that mingw builds.

svn:r6523
Nick Mathewson 18 years ago
parent
commit
86da3e0a0a
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/common/compat.h
  2. 1 1
      src/common/torgzip.c

+ 1 - 1
src/common/compat.h

@@ -89,7 +89,7 @@ size_t strlcat(char *dst, const char *src, size_t siz);
 size_t strlcpy(char *dst, const char *src, size_t siz);
 #endif
 
-#ifdef MS_WINDOWS
+#ifdef _MSC_VER
 #define U64_PRINTF_ARG(a) (a)
 #define U64_SCANF_ARG(a) (a)
 #define U64_FORMAT "%I64u"

+ 1 - 1
src/common/torgzip.c

@@ -15,7 +15,7 @@ const char torgzip_c_id[] =
 #include <stdlib.h>
 #include <stdio.h>
 #include <assert.h>
-#ifdef MS_WINDOWS
+#ifdef _MSC_VER
 #include "..\..\contrib\zlib\zlib.h"
 #else
 #include <zlib.h>