mirror of
https://github.com/wassname/ray.git
synced 2026-07-09 08:31:33 +08:00
f0b7de7cfe
Co-authored-by: Mehrdad <noreply@github.com>
28 lines
585 B
Diff
28 lines
585 B
Diff
diff --git include/msgpack/v1/vrefbuffer.hpp include/msgpack/v1/vrefbuffer.hpp
|
|
--- include/msgpack/v1/vrefbuffer.hpp
|
|
+++ include/msgpack/v1/vrefbuffer.hpp
|
|
@@ -28,4 +28,19 @@
|
|
+#ifdef _WIN32
|
|
+#ifndef _WS2DEF_
|
|
+#include <Winsock2.h>
|
|
+#endif
|
|
+#ifndef iovec
|
|
+#define iovec _WSABUF
|
|
+#endif
|
|
+#ifndef iov_base
|
|
+#define iov_base buf
|
|
+#endif
|
|
+#ifndef iov_len
|
|
+#define iov_len len
|
|
+#endif
|
|
+#else
|
|
struct iovec {
|
|
void *iov_base;
|
|
size_t iov_len;
|
|
};
|
|
+#endif
|
|
@@ -171,1 +179,1 @@
|
|
- const_cast<const void *>((m_tail - 1)->iov_base)
|
|
+ (m_tail - 1)->iov_base
|
|
--
|