X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/a04347e5cbe92a5f99231dcdb3d7d0f474bad401..9d89dd06da51b0e009e9be53da50836e7dc7408c:/event_compat.h?ds=inline 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 -#endif -#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