summaryrefslogtreecommitdiff
path: root/newstructure/thirdparty/linux/include/coin/CoinSignal.hpp
diff options
context:
space:
mode:
authorHarpreet2016-09-03 00:34:27 +0530
committerHarpreet2016-09-03 00:34:27 +0530
commit4b64cf486f5c999fd8167758cae27839f3b50848 (patch)
treed9d06639fb7fa61aef59be0363655e4747105ec7 /newstructure/thirdparty/linux/include/coin/CoinSignal.hpp
parentd19794fb80a271a4c885ed90f97cfc12baa012f2 (diff)
downloadFOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.gz
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.bz2
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.zip
Structure updated and intqpipopt files added
Diffstat (limited to 'newstructure/thirdparty/linux/include/coin/CoinSignal.hpp')
-rw-r--r--newstructure/thirdparty/linux/include/coin/CoinSignal.hpp117
1 files changed, 117 insertions, 0 deletions
diff --git a/newstructure/thirdparty/linux/include/coin/CoinSignal.hpp b/newstructure/thirdparty/linux/include/coin/CoinSignal.hpp
new file mode 100644
index 0000000..2bbf0d0
--- /dev/null
+++ b/newstructure/thirdparty/linux/include/coin/CoinSignal.hpp
@@ -0,0 +1,117 @@
+/* $Id: CoinSignal.hpp 1810 2015-03-13 20:16:34Z tkr $ */
+// Copyright (C) 2003, International Business Machines
+// Corporation and others. All Rights Reserved.
+// This code is licensed under the terms of the Eclipse Public License (EPL).
+
+#ifndef _CoinSignal_hpp
+#define _CoinSignal_hpp
+
+// This file is fully docified.
+// There's nothing to docify...
+
+//#############################################################################
+
+#include <csignal>
+
+//#############################################################################
+
+#if defined(_MSC_VER)
+ typedef void (__cdecl *CoinSighandler_t) (int);
+# define CoinSighandler_t_defined
+#endif
+
+//-----------------------------------------------------------------------------
+
+#if (defined(__GNUC__) && defined(__linux__))
+ typedef sighandler_t CoinSighandler_t;
+# define CoinSighandler_t_defined
+#endif
+
+//-----------------------------------------------------------------------------
+
+#if defined(__CYGWIN__) && defined(__GNUC__)
+ typedef __decltype(SIG_DFL) CoinSighandler_t;
+# define CoinSighandler_t_defined
+#endif
+
+//-----------------------------------------------------------------------------
+
+#if defined(__MINGW32__) && defined(__GNUC__)
+ typedef __decltype(SIG_DFL) CoinSighandler_t;
+# define CoinSighandler_t_defined
+#endif
+
+//-----------------------------------------------------------------------------
+
+#if defined(__FreeBSD__) && defined(__GNUC__)
+ typedef __decltype(SIG_DFL) CoinSighandler_t;
+# define CoinSighandler_t_defined
+#endif
+
+//-----------------------------------------------------------------------------
+
+#if defined(__NetBSD__) && defined(__GNUC__)
+ typedef __decltype(SIG_DFL) CoinSighandler_t;
+# define CoinSighandler_t_defined
+#endif
+
+//-----------------------------------------------------------------------------
+
+#if defined(_AIX)
+# if defined(__GNUC__)
+ typedef __decltype(SIG_DFL) CoinSighandler_t;
+# define CoinSighandler_t_defined
+# endif
+#endif
+
+//-----------------------------------------------------------------------------
+
+#if defined (__hpux)
+# define CoinSighandler_t_defined
+# if defined(__GNUC__)
+ typedef __decltype(SIG_DFL) CoinSighandler_t;
+# else
+ extern "C" {
+ typedef void (*CoinSighandler_t) (int);
+ }
+# endif
+#endif
+
+//-----------------------------------------------------------------------------
+
+#if defined(__sun)
+# if defined(__SUNPRO_CC)
+# include <signal.h>
+ extern "C" {
+ typedef void (*CoinSighandler_t) (int);
+ }
+# define CoinSighandler_t_defined
+# endif
+# if defined(__GNUC__)
+ typedef __decltype(SIG_DFL) CoinSighandler_t;
+# define CoinSighandler_t_defined
+# endif
+#endif
+
+//-----------------------------------------------------------------------------
+
+#if defined(__MACH__) && defined(__GNUC__)
+typedef __decltype(SIG_DFL) CoinSighandler_t;
+# define CoinSighandler_t_defined
+#endif
+
+//#############################################################################
+
+#ifndef CoinSighandler_t_defined
+# warning("OS and/or compiler is not recognized. Defaulting to:");
+# warning("extern 'C' {")
+# warning(" typedef void (*CoinSighandler_t) (int);")
+# warning("}")
+ extern "C" {
+ typedef void (*CoinSighandler_t) (int);
+ }
+#endif
+
+//#############################################################################
+
+#endif