]> git.llucax.com Git - software/libev.git/blobdiff - event_compat.h
minor kqueue optimisation
[software/libev.git] / event_compat.h
index 38fd3dc31c8363d2687579485c34a8abf6453de0..3fb0908cfcdf422f8215f8ab93f24aa4e8699404 100644 (file)
 extern "C" {
 #endif
 
 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;
 typedef unsigned char u_char;
 typedef unsigned short u_short;
+#else
+# include <sys/types.h>
+# include <sys/time.h>
+# include <inttypes.h>
 #endif
 
 #endif
 
+#include <stdarg.h>
+
 /* Fix so that ppl dont have to run with <sys/queue.h> */
 #ifndef TAILQ_ENTRY
 #define _EVENT_DEFINED_TQENTRY
 /* Fix so that ppl dont have to run with <sys/queue.h> */
 #ifndef TAILQ_ENTRY
 #define _EVENT_DEFINED_TQENTRY