summaryrefslogtreecommitdiff
path: root/event_compat.h
diff options
context:
space:
mode:
authorroot <root>2007-11-12 18:49:17 +0000
committerroot <root>2007-11-12 18:49:17 +0000
commitc3ca1bf75f7fe800530abcb744a67977b6dfcc56 (patch)
tree383b018917a270fb307605e22e8cbc81aadc2fc8 /event_compat.h
parenta97e74e3908d62230e834fd7b30f2869136eef31 (diff)
*** empty log message ***
Diffstat (limited to 'event_compat.h')
-rw-r--r--event_compat.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/event_compat.h b/event_compat.h
index 38fd3dc..3fb0908 100644
--- a/event_compat.h
+++ b/event_compat.h
@@ -28,21 +28,20 @@
extern "C" {
#endif
-#ifndef WIN32
-#include <sys/types.h>
-#endif
-#include <sys/time.h>
-#include <inttypes.h>
-#include <stdarg.h>
-
-#ifdef WIN32
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
-#undef WIN32_LEAN_AND_MEAN
+#ifdef _WIN32
+# define WIN32_LEAN_AND_MEAN
+# include <windows.h>
+# undef WIN32_LEAN_AND_MEAN
typedef unsigned char u_char;
typedef unsigned short u_short;
+#else
+# include <sys/types.h>
+# include <sys/time.h>
+# include <inttypes.h>
#endif
+#include <stdarg.h>
+
/* Fix so that ppl dont have to run with <sys/queue.h> */
#ifndef TAILQ_ENTRY
#define _EVENT_DEFINED_TQENTRY