--- libeio/ecb.h 2012/10/09 04:53:53 1.16 +++ libeio/ecb.h 2012/12/28 07:33:41 1.17 @@ -31,7 +31,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; @@ -65,6 +65,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.