1*3ed1469cSJürgen Schmidt--- misc/CoinMP-1.7.6/CoinUtils/src/CoinSignal.hpp	2011-01-04 00:31:00.000000000 +0100
2*3ed1469cSJürgen Schmidt+++ misc/build/CoinMP-1.7.6/CoinUtils/src/CoinSignal.hpp	2015-09-28 10:45:02.000000000 +0200
3c712fec4SPedro Giffuni@@ -44,7 +44,11 @@
4bfaba8a2SHerbert Dürr //-----------------------------------------------------------------------------
5bfaba8a2SHerbert Dürr
6c712fec4SPedro Giffuni #if defined(__FreeBSD__) && defined(__GNUC__)
7c712fec4SPedro Giffuni-   typedef typeof(SIG_DFL) CoinSighandler_t;
8c712fec4SPedro Giffuni+   #if defined(__clang__)
9c712fec4SPedro Giffuni+     typedef __decltype(SIG_DFL) CoinSighandler_t;
10c712fec4SPedro Giffuni+   #else
11c712fec4SPedro Giffuni+     typedef typeof(SIG_DFL) CoinSighandler_t;
12c712fec4SPedro Giffuni+   #endif
13c57dbac1SPedro Giffuni #  define CoinSighandler_t_defined
14c57dbac1SPedro Giffuni #endif
15c57dbac1SPedro Giffuni
16*3ed1469cSJürgen Schmidt@@ -95,7 +99,10 @@
17*3ed1469cSJürgen Schmidt
18*3ed1469cSJürgen Schmidt //-----------------------------------------------------------------------------
19*3ed1469cSJürgen Schmidt
20*3ed1469cSJürgen Schmidt-#if defined(__MACH__) && defined(__GNUC__)
21*3ed1469cSJürgen Schmidt+#if defined(__clang__) && !defined(CoinSighandler_t_defined)
22*3ed1469cSJürgen Schmidt+   typedef void(*CoinSighandler_t)(int);
23*3ed1469cSJürgen Schmidt+#  define CoinSighandler_t_defined
24*3ed1469cSJürgen Schmidt+#elif defined(__MACH__) && defined(__GNUC__)
25*3ed1469cSJürgen Schmidt    typedef typeof(SIG_DFL) CoinSighandler_t;
26*3ed1469cSJürgen Schmidt #  define CoinSighandler_t_defined
27*3ed1469cSJürgen Schmidt #endif
28