xref: /trunk/ext_libraries/coinmp/coinmp-1.7.6-clang.patch (revision 29920ea143c96bccd47622c46f66d27d23b809e2)
1--- misc/CoinMP-1.7.6/CoinUtils/src/CoinSignal.hpp  2011-01-03 20:31:00.000000000 -0300
2+++ misc/build/CoinMP-1.7.6/CoinUtils/src/CoinSignal.hpp    2014-02-01 02:02:10.596696644 -0300
3@@ -95,7 +95,10 @@
4
5 //-----------------------------------------------------------------------------
6
7-#if defined(__MACH__) && defined(__GNUC__)
8+#if defined(__clang__)
9+   typedef void(*CoinSighandler_t)(int);
10+#  define CoinSighandler_t_defined
11+#elif defined(__MACH__) && defined(__GNUC__)
12    typedef typeof(SIG_DFL) CoinSighandler_t;
13 #  define CoinSighandler_t_defined
14 #endif
15