summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/torint.h5
-rw-r--r--src/or/or.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/src/common/torint.h b/src/common/torint.h
index 6ec53ed127..f520072aa2 100644
--- a/src/common/torint.h
+++ b/src/common/torint.h
@@ -41,6 +41,11 @@
#include <inttypes.h>
#endif
+#ifdef MS_WINDOWS
+/* Windows likes to capitalize ssize_t. Charming. */
+#define ssize_t SSIZE_T
+#endif
+
#if (SIZEOF_INT8_T != 0)
#define HAVE_INT8_T
#endif
diff --git a/src/or/or.h b/src/or/or.h
index 92fac0a159..679123d75b 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -110,7 +110,6 @@
#include <process.h>
#include <direct.h>
#include <windows.h>
-#define ssize_t SSIZE_T
#define snprintf _snprintf
#endif