summaryrefslogtreecommitdiff
path: root/msgpack
diff options
context:
space:
mode:
authorfirewood <karamaki@gmail.com>2010-02-05 22:49:00 +0900
committerfirewood <karamaki@gmail.com>2010-02-05 22:49:00 +0900
commit66ef6c9e4cf66626ec5af498096b35abb8a050c0 (patch)
tree2ef243739e49b994858f48567b5213181c2de3c6 /msgpack
parent7df60b259b55b6294c19315350ec312809107117 (diff)
downloadmsgpack-python-66ef6c9e4cf66626ec5af498096b35abb8a050c0.tar.gz
undef after including winsock2.h.
Diffstat (limited to 'msgpack')
-rw-r--r--msgpack/sysdep.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/msgpack/sysdep.h b/msgpack/sysdep.h
index e9540d5..c69c69a 100644
--- a/msgpack/sysdep.h
+++ b/msgpack/sysdep.h
@@ -46,6 +46,9 @@ typedef unsigned int _msgpack_atomic_counter_t;
#endif
+#ifdef _WIN32
+#include <winsock2.h>
+
#ifdef __cplusplus
/* numeric_limits<T>::min,max */
#ifdef max
@@ -56,9 +59,6 @@ typedef unsigned int _msgpack_atomic_counter_t;
#endif
#endif
-
-#ifdef _WIN32
-#include <winsock2.h>
#else
#include <arpa/inet.h> /* __BYTE_ORDER */
#endif