summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 20177f6a4a..6f0165487c 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -82,11 +82,11 @@
#include <winsock.h>
#endif
-#ifdef _MSC_VER
+#ifdef MS_WINDOWS
#include <io.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-#define snprintf
+#define snprintf _snprintf
#endif