diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-02-28 17:46:36 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-02-28 17:46:36 +0000 |
commit | e1176ece5ad70677d34feb097a9b9fcd98143c55 (patch) | |
tree | 88618f465ee9cdd583446a4f4da669d490e8c57f /src/common | |
parent | deef370a1c4ba044d58f55108d55dbf6ce7a066b (diff) | |
download | tor-e1176ece5ad70677d34feb097a9b9fcd98143c55.tar.gz tor-e1176ece5ad70677d34feb097a9b9fcd98143c55.zip |
r11992@catbus: nickm | 2007-02-28 12:46:32 -0500
compile fix on mingw: mingw does not define _MSC_VER.
svn:r9682
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.h | 2 | ||||
-rw-r--r-- | src/common/util.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 7cfb6a5e45..b7eaf75ea3 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -13,7 +13,7 @@ #define WIN32_WINNT 0x400 #define _WIN32_WINNT 0x400 #define WIN32_LEAN_AND_MEAN -#if (_MSC_VER <= 1300) +#if defined(_MSC_VER) && (_MSC_VER <= 1300) #include <winsock.h> #else #include <winsock2.h> diff --git a/src/common/util.c b/src/common/util.c index b042963c57..a16d41fad7 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -541,7 +541,7 @@ tor_parse_uint64(const char *s, int base, uint64_t min, #ifdef HAVE_STRTOULL r = (uint64_t)strtoull(s, &endptr, base); #elif defined(MS_WINDOWS) -#if _MSC_VER < 1300 +#if defined(_MSC_VER) && _MSC_VER < 1300 tor_assert(base <= 10); r = (uint64_t)_atoi64(s); endptr = (char*)s; |