xref: /trunk/ext_libraries/coinmp/coinmp-1.7.6-clang.patch (revision c57dbac1a079fd49a3cb7fc950f5cb5320568c29)
1--- misc/CoinMP-1.7.6/CoinUtils/src/CoinSignal.hpp  2011-01-03 23:31:00.000000000 +0000
2+++ misc/build/CoinMP-1.7.6/CoinUtils/src/CoinSignal.hpp    2015-07-14 00:18:26.105360000 +0000
3@@ -43,7 +43,7 @@
4
5 //-----------------------------------------------------------------------------
6
7-#if defined(__FreeBSD__) && defined(__GNUC__)
8+#if defined(__FreeBSD__) && defined(__GNUC__) && !defined(__clang__)
9    typedef typeof(SIG_DFL) CoinSighandler_t;
10 #  define CoinSighandler_t_defined
11 #endif
12@@ -100,6 +100,13 @@
13 #  define CoinSighandler_t_defined
14 #endif
15
16+//-----------------------------------------------------------------------------
17+
18+#if defined(__clang__)
19+   typedef __decltype(SIG_DFL) CoinSighandler_t;
20+#  define CoinSighandler_t_defined
21+#endif
22+
23 //#############################################################################
24
25 #ifndef CoinSighandler_t_defined
26