From: Michael Wallner Date: Sun, 20 Dec 2020 14:24:58 +0000 (+0100) Subject: set windows version constants X-Git-Tag: 1.1.0-beta1~27 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a0ee2a783e61b48a4a775340dcd662ac80edd869;p=awesomized%2Flibmemcached set windows version constants --- diff --git a/include/libmemcached-1/platform.h b/include/libmemcached-1/platform.h index c0223392..ad345f64 100644 --- a/include/libmemcached-1/platform.h +++ b/include/libmemcached-1/platform.h @@ -53,15 +53,11 @@ typedef long int ssize_t; #endif #if defined _WIN32 +# define WINVER 0x0600 +# define _WIN32_WINNT 0x0600 # include # include typedef SOCKET memcached_socket_t; -# if !defined POLLIN -# define POLLIN (POLLRDNORM|POLLRDBAND) -# endif -# if !defined POLLOUT -# define POLLOUT (POLLWRNORM) -# endif #else typedef int memcached_socket_t; #endif // _WIN32