瀏覽代碼

r8971@totoro: nickm | 2006-10-09 10:16:23 -0400
Move definition of ssize_t to torint.h


svn:r8670

Nick Mathewson 17 年之前
父節點
當前提交
17abfa6a6a
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 5 0
      src/common/torint.h
  2. 0 1
      src/or/or.h

+ 5 - 0
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

+ 0 - 1
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