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