projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
c++: fix -Wclass-memaccess
[awesomized/libmemcached]
/
libmemcached
/
poll.cc
diff --git
a/libmemcached/poll.cc
b/libmemcached/poll.cc
index abd15d4cb770886f9f114b40078941e77b84b6cb..6fdf242c90d0637c2eba38df2d9c3f2cb716fe28 100644
(file)
--- a/
libmemcached/poll.cc
+++ b/
libmemcached/poll.cc
@@
-12,7
+12,7
@@
#include "libmemcached/common.h"
#include "libmemcached/common.h"
-#if defined(
WIN32) || defined(__MINGW32__
)
+#if defined(
_WIN32
)
#include "libmemcached/poll.h"
#include <sys/time.h>
#include "libmemcached/poll.h"
#include <sys/time.h>
@@
-31,7
+31,7
@@
int poll(struct pollfd fds[], nfds_t nfds, int tmo)
{
if (fds[x].events & (POLLIN | POLLOUT))
{
{
if (fds[x].events & (POLLIN | POLLOUT))
{
-#ifndef WIN32
+#ifndef
_
WIN32
if (fds[x].fd > maxfd)
{
maxfd= fds[x].fd;
if (fds[x].fd > maxfd)
{
maxfd= fds[x].fd;
@@
-82,4
+82,4
@@
int poll(struct pollfd fds[], nfds_t nfds, int tmo)
return ret;
}
return ret;
}
-#endif // defined(
WIN32) || defined(__MINGW32__
)
+#endif // defined(
_WIN32
)