@@ -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;
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;
-}
+}