summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorMarc Alexander Lehmann <libev@schmorp.de>2018-12-21 06:57:09 +0000
committerMarc Alexander Lehmann <libev@schmorp.de>2018-12-21 06:57:09 +0000
commitb554b88765b655465bbcae2b4666cb6ad3f6c51a (patch)
tree9c870e8fd076755cae829f638b09303b0e24f6fe /ev.c
parenta2cb619f2cfa69972d3c00cef0f0439a3dbcdffb (diff)
downloadlibev-b554b88765b655465bbcae2b4666cb6ad3f6c51a.tar.gz
libev-b554b88765b655465bbcae2b4666cb6ad3f6c51a.zip
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ev.c b/ev.c
index c64fe75..47ef28a 100644
--- a/ev.c
+++ b/ev.c
@@ -611,6 +611,8 @@ struct signalfd_siginfo
#define ECB_CPP (__cplusplus+0)
#define ECB_CPP11 (__cplusplus >= 201103L)
+#define ECB_CPP14 (__cplusplus >= 201402L)
+#define ECB_CPP17 (__cplusplus >= 201703L)
#if ECB_CPP
#define ECB_C 0
@@ -622,6 +624,7 @@ struct signalfd_siginfo
#define ECB_C99 (ECB_STDC_VERSION >= 199901L)
#define ECB_C11 (ECB_STDC_VERSION >= 201112L)
+#define ECB_C17 (ECB_STDC_VERSION >= 201710L)
#if ECB_CPP
#define ECB_EXTERN_C extern "C"
@@ -660,11 +663,11 @@ struct signalfd_siginfo
#if __i386 || __i386__
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("lock; orb $0, -1(%%esp)" : : : "memory")
#define ECB_MEMORY_FENCE_ACQUIRE __asm__ __volatile__ ("" : : : "memory")
- #define ECB_MEMORY_FENCE_RELEASE __asm__ __volatile__ ("")
+ #define ECB_MEMORY_FENCE_RELEASE __asm__ __volatile__ ("" : : : "memory")
#elif ECB_GCC_AMD64
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("mfence" : : : "memory")
#define ECB_MEMORY_FENCE_ACQUIRE __asm__ __volatile__ ("" : : : "memory")
- #define ECB_MEMORY_FENCE_RELEASE __asm__ __volatile__ ("")
+ #define ECB_MEMORY_FENCE_RELEASE __asm__ __volatile__ ("" : : : "memory")
#elif __powerpc__ || __ppc__ || __powerpc64__ || __ppc64__
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("sync" : : : "memory")
#elif defined __ARM_ARCH_2__ \