X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/e41dfc2c8396ec60ec237e2c5cdf11b9dbb856ac..3c11c7ffee9d72d3cf265dbb9fbefcee272b64ec:/event_compat.h?ds=sidebyside diff --git a/event_compat.h b/event_compat.h index 490757a..3fb0908 100644 --- a/event_compat.h +++ b/event_compat.h @@ -28,19 +28,20 @@ extern "C" { #endif -#include -#include -#include -#include - -#ifdef WIN32 -#define WIN32_LEAN_AND_MEAN -#include -#undef WIN32_LEAN_AND_MEAN +#ifdef _WIN32 +# define WIN32_LEAN_AND_MEAN +# include +# undef WIN32_LEAN_AND_MEAN typedef unsigned char u_char; typedef unsigned short u_short; +#else +# include +# include +# include #endif +#include + /* Fix so that ppl dont have to run with */ #ifndef TAILQ_ENTRY #define _EVENT_DEFINED_TQENTRY