summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2013-03-01 11:13:22 +0000
committerroot <root>2013-03-01 11:13:22 +0000
commit1aa1aadea60855298e59aeb5555e71135086b348 (patch)
treee6d5223138bda4a6bda7ee5cb4f3cfa4a0ed6b69 /ev.c
parent97e8bdd65b5bee3597723feb2397758d64797b2b (diff)
4.15
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c11
1 files changed, 10 insertions, 1 deletions
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.