Skip to content
Snippets Groups Projects
Commit e1176ece authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

r11992@catbus: nickm | 2007-02-28 12:46:32 -0500

 compile fix on mingw: mingw does not define _MSC_VER.


svn:r9682
parent deef370a
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
......@@ -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;
......
......@@ -31,7 +31,7 @@
#endif
#ifdef MS_WINDOWS
#if (_MSC_VER <= 1300)
#if defined(_MSC_VER) && (_MSC_VER <= 1300)
#include <winsock.h>
#else
#include <winsock2.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment