Update for mingw compile.
[awesomized/libmemcached] / libmemcached / common.h
index cc71ac5f8123813588832780b5e0b6052bd8d761..b03f79c1dc0c2c78296bcd3482a4ab9403904259 100644 (file)
 # include <dlfcn.h>
 #endif
 
+#if defined(WIN32) || defined(__MINGW32__)
+# include "libmemcached/windows.hpp"
+#endif
+
 #include <libmemcached-1.0/memcached.h>
 #include <libmemcached/watchpoint.h>
 #include <libmemcached/is.h>
 #ifdef HAVE_POLL_H
 # include <poll.h>
 #else
-# include "poll/poll.h"
-#endif
-
-#ifndef POLLHUP
-# define POLLHUP               0x0010
-#endif
-
-#ifndef POLLNVAL
-# define POLLNVAL      0x0020
+# include "libmemcached/poll.h"
 #endif
 
 #ifdef __cplusplus