--- libev/ev.c 2013/02/28 00:33:25 1.453 +++ libev/ev.c 2013/03/01 11:13:22 1.454 @@ -517,7 +517,7 @@ #define ECB_H /* 16 bits major, 16 bits minor */ -#define ECB_VERSION 0x00010002 +#define ECB_VERSION 0x00010003 #ifdef _WIN32 typedef signed char int8_t; @@ -551,6 +551,15 @@ #endif #endif +/* work around x32 idiocy by defining proper macros */ +#if __x86_64 || _M_AMD64 + #if __ILP32 + #define ECB_AMD64_X32 1 + #else + #define ECB_AMD64 1 + #endif +#endif + /* many compilers define _GNUC_ to some versions but then only implement * what their idiot authors think are the "more important" extensions, * causing enormous grief in return for some better fake benchmark numbers.