summaryrefslogtreecommitdiff
path: root/devel/rubygem-cool.io/files/patch-ext__libev__ev.c
blob: 804914e709261f87bf03e5189368f33a033885ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- ext/libev/ev.c.orig	2015-05-06 14:19:50 UTC
+++ ext/libev/ev.c
@@ -967,12 +967,12 @@ ecb_inline uint64_t ecb_rotr64 (uint64_t
   }
 #endif
 
-#if ECB_GCC_VERSION(4,5)
+#if ECB_GCC_VERSION(4,5) || defined __clang__
   #define ecb_unreachable() __builtin_unreachable ()
 #else
   /* this seems to work fine, but gcc always emits a warning for it :/ */
-  ecb_inline void ecb_unreachable (void) ecb_noreturn;
-  ecb_inline void ecb_unreachable (void) { }
+  ecb_inline void ecb_noreturn ecb_unreachable (void);
+  ecb_inline void ecb_noreturn ecb_unreachable (void) { }
 #endif
 
 /* try to tell the compiler that some condition is definitely true */