]> git.llucax.com Git - software/libev.git/blobdiff - event_compat.h
implement EVFLAG_FORKCHECK
[software/libev.git] / event_compat.h
index 84ca5bfd18b6a2f7f6b8dc6d1207d987eb194142..3fb0908cfcdf422f8215f8ab93f24aa4e8699404 100644 (file)
 extern "C" {
 #endif
 
 extern "C" {
 #endif
 
-#ifndef WIN32
-#include <sys/types.h>
-#endif
-#include <sys/time.h>
-#include <stdint.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