projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
m4: ax_assert
[m6w6/libmemcached]
/
libmemcached-1.0
/
platform.h
diff --git
a/libmemcached-1.0/platform.h
b/libmemcached-1.0/platform.h
index 01ce276c876634daaf7ae015de5c7404c5e48eaf..efdf53f81b495dd2ea2ad3f5bac8cbd9b554b6c8 100644
(file)
--- a/
libmemcached-1.0/platform.h
+++ b/
libmemcached-1.0/platform.h
@@
-38,11
+38,15
@@
#pragma once
#pragma once
-#if defined(
WIN32) || defined(__MINGW32__
)
+#if defined(
_WIN32
)
# include <winsock2.h>
# include <ws2tcpip.h>
# include <winsock2.h>
# include <ws2tcpip.h>
-typedef short in_port_t;
+#ifndef HAVE_IN_PORT_T
+typedef int in_port_t;
+# define HAVE_IN_PORT_T 1
+#endif
+
typedef SOCKET memcached_socket_t;
#else
typedef SOCKET memcached_socket_t;
#else
@@
-55,4
+59,4
@@
typedef SOCKET memcached_socket_t;
typedef int memcached_socket_t;
typedef int memcached_socket_t;
-#endif /* WIN32 */
+#endif /*
_
WIN32 */