svn:r2575
@@ -24,15 +24,15 @@
#error "It seems your platform does not represent NULL as zero. We can't cope."
#endif
-#ifdef HAVE_WINSOCK_H
+#ifdef MS_WINDOWS
+#if (_MSC_VER <= 1300)
#include <winsock.h>
-#endif
-#if _MSC_VER > 1300
+#else
#include <winsock2.h>
#include <ws2tcpip.h>
-#elif defined(_MSC_VER)
-#include <winsock.h>
+#endif
+
#if !defined(HAVE_GETTIMEOFDAY) && !defined(HAVE_STRUCT_TIMEVAL_TV_SEC)
struct timeval {
time_t tv_sec;
@@ -94,14 +94,15 @@
#ifdef HAVE_TIME_H
#include <time.h>
#ifdef MS_WINDOWS
@@ -51,7 +51,7 @@ setup_directory()
if (is_setup) return;
sprintf(temp_dir, "/tmp/tor_test_%d", (int) getpid());
-#ifdef _MSC_VER
r = mkdir(temp_dir);
#else
r = mkdir(temp_dir, 0700);