From 1aa1aadea60855298e59aeb5555e71135086b348 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 Mar 2013 11:13:22 +0000 Subject: 4.15 --- ev.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'ev.c') diff --git a/ev.c b/ev.c index a03a40f..e5bd5ab 100644 --- a/ev.c +++ b/ev.c @@ -517,7 +517,7 @@ struct signalfd_siginfo #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 @@ struct signalfd_siginfo #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. -- cgit v1.2.3