summaryrefslogtreecommitdiff
path: root/evbuffer-internal.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-05-25 19:50:56 -0400
committerNick Mathewson <nickm@torproject.org>2011-05-25 20:03:15 -0400
commit9f560bfa114b8216af2dac28966eae53c0c97ed3 (patch)
treeb1af5a819ff6afe10e45b8e6b5fed83f84d2fcc0 /evbuffer-internal.h
parent0e95950e605d24cff370d07db1a4fc40d15c31e3 (diff)
downloadlibevent-9f560bfa114b8216af2dac28966eae53c0c97ed3.tar.gz
Use "_WIN32", not WIN32: it's standard and we don't need to fake it
This patch was automatically generated with perl. Based on a patch by Peter Rosin.
Diffstat (limited to 'evbuffer-internal.h')
-rw-r--r--evbuffer-internal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/evbuffer-internal.h b/evbuffer-internal.h
index 08b94b2f..6bb3e2c1 100644
--- a/evbuffer-internal.h
+++ b/evbuffer-internal.h
@@ -42,7 +42,7 @@ extern "C" {
* arguments. */
#define EVBUFFER_CB_NODEFER 2
-#ifdef WIN32
+#ifdef _WIN32
#include <winsock2.h>
#endif
#include <sys/queue.h>
@@ -126,7 +126,7 @@ struct evbuffer {
* overflows when we have mutually recursive callbacks, and for
* serializing callbacks in a single thread. */
unsigned deferred_cbs : 1;
-#ifdef WIN32
+#ifdef _WIN32
/** True iff this buffer is set up for overlapped IO. */
unsigned is_overlapped : 1;
#endif
@@ -205,7 +205,7 @@ struct evbuffer_chain_reference {
* evbuffer_chain with the EVBUFFER_FILESEGMENT flag set. */
struct evbuffer_chain_file_segment {
struct evbuffer_file_segment *segment;
-#ifdef WIN32
+#ifdef _WIN32
/** If we're using CreateFileMapping, this is the handle to the view. */
HANDLE view_handle;
#endif
@@ -224,7 +224,7 @@ struct evbuffer_file_segment {
int fd;
/** If we're using mmap, this is the raw mapped memory. */
void *mapping;
-#ifdef WIN32
+#ifdef _WIN32
/** If we're using CreateFileMapping, this is the mapping */
HANDLE mapping_handle;
#endif