]> git.llucax.com Git - software/libev.git/blobdiff - event_compat.h
renamed METHODs to BACKENDs
[software/libev.git] / event_compat.h
index 490757a0c5dc847e8d3d820b785d4b640908d230..3fb0908cfcdf422f8215f8ab93f24aa4e8699404 100644 (file)
 extern "C" {
 #endif
 
-#include <sys/types.h>
-#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;
+#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