# 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>
+typedef struct memcached_st Memcached;
#ifdef __cplusplus
# include "libmemcached/instance.hpp"
#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