mawinkle 6 lat temu
rodzic
commit
15c2b9ccb5
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6 1
      socketio_win32.cpp

+ 6 - 1
socketio_win32.cpp

@@ -12,7 +12,12 @@
 
 #ifdef _MSC_VER
 #undef min
+#ifdef _WIN64
 using ssize_t = std::int64_t;
+#endif
+#ifndef _WIN64
+using ssize_t = std::int32_t;
+#endif
 template<typename T>
 const T& min(const T& a,const T& b){
 	return (b < a) ? b : a;
@@ -194,4 +199,4 @@ cppsocket& cppsocket::operator=(cppsocket&& o) {
 	o.s = INVALID_SOCKET;
 	buffer = std::move(o.buffer);
 	return *this;
-}
+}