Browse Source

fix compile error on MSVC, where ssize_t doesn't exist (but SSIZE_T does)

rdb 12 years ago
parent
commit
461fdfdddc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      dtool/src/dtoolutil/pandaFileStreamBuf.cxx

+ 4 - 0
dtool/src/dtoolutil/pandaFileStreamBuf.cxx

@@ -26,6 +26,10 @@
 #include <errno.h>
 #endif  // _WIN32
 
+#ifdef _MSC_VER
+typedef SSIZE_T ssize_t;
+#endif
+
 PandaFileStreamBuf::NewlineMode PandaFileStreamBuf::_newline_mode = NM_native;
 
 static const size_t file_buffer_size = 4096;