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 #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 #include #include -#define ssize_t SSIZE_T #define snprintf _snprintf #endif