Clp 1.17.6

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CoinSignal.hpp
Go to the documentation of this file.
1 /* $Id: CoinSignal.hpp 2216 2019-12-27 03:28:40Z stefan $ */
2 // Copyright (C) 2003, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5
6 #ifndef _CoinSignal_hpp
7 #define _CoinSignal_hpp
8
9 // This file is fully docified.
10 // There's nothing to docify...
11
12 //#############################################################################
13
14 #include <csignal>
15
16 //#############################################################################
17
18 #if defined(_MSC_VER)
19 typedef void(__cdecl *CoinSighandler_t)(int);
20 #define CoinSighandler_t_defined
21 #endif
22
23 //-----------------------------------------------------------------------------
24
25 #if (defined(__GNUC__) && defined(__linux__))
26 typedef sighandler_t CoinSighandler_t;
27 #define CoinSighandler_t_defined
28 #endif
29
30 //-----------------------------------------------------------------------------
31
32 #if defined(__CYGWIN__) && defined(__GNUC__)
33 typedef __decltype(SIG_DFL) CoinSighandler_t;
34 #define CoinSighandler_t_defined
35 #endif
36
37 //-----------------------------------------------------------------------------
38
39 #if defined(__MINGW32__) && defined(__GNUC__)
40 typedef __decltype(SIG_DFL) CoinSighandler_t;
41 #define CoinSighandler_t_defined
42 #endif
43
44 //-----------------------------------------------------------------------------
45
46 #if defined(__OpenBSD__) && defined(__GNUC__)
47 typedef __decltype(SIG_DFL) CoinSighandler_t;
48 #define CoinSighandler_t_defined
49 #endif
50
51 //-----------------------------------------------------------------------------
52
53 #if defined(__FreeBSD__) && defined(__GNUC__)
54 typedef __decltype(SIG_DFL) CoinSighandler_t;
55 #define CoinSighandler_t_defined
56 #endif
57
58 //-----------------------------------------------------------------------------
59
60 #if defined(__NetBSD__) && defined(__GNUC__)
61 typedef __decltype(SIG_DFL) CoinSighandler_t;
62 #define CoinSighandler_t_defined
63 #endif
64
65 //-----------------------------------------------------------------------------
66
67 #if defined(_AIX)
68 #if defined(__GNUC__)
69 typedef __decltype(SIG_DFL) CoinSighandler_t;
70 #define CoinSighandler_t_defined
71 #endif
72 #endif
73
74 //-----------------------------------------------------------------------------
75
76 #if defined(__hpux)
77 #define CoinSighandler_t_defined
78 #if defined(__GNUC__)
79 typedef __decltype(SIG_DFL) CoinSighandler_t;
80 #else
81 extern "C" {
82 typedef void (*CoinSighandler_t)(int);
83 }
84 #endif
85 #endif
86
87 //-----------------------------------------------------------------------------
88
89 #if defined(__sun)
90 #if defined(__SUNPRO_CC)
91 #include <signal.h>
92 extern "C" {
93 typedef void (*CoinSighandler_t)(int);
94 }
95 #define CoinSighandler_t_defined
96 #endif
97 #if defined(__GNUC__)
98 typedef __decltype(SIG_DFL) CoinSighandler_t;
99 #define CoinSighandler_t_defined
100 #endif
101 #endif
102
103 //-----------------------------------------------------------------------------
104
105 #if defined(__MACH__) && defined(__GNUC__)
106 typedef __decltype(SIG_DFL) CoinSighandler_t;
107 #define CoinSighandler_t_defined
108 #endif
109
110 //#############################################################################
111
112 #ifndef CoinSighandler_t_defined
113 #warning("OS and/or compiler is not recognized. Defaulting to:");
114 #warning("extern 'C' {")
115 #warning(" typedef void (*CoinSighandler_t) (int);")
116 #warning("}")
117 extern "C" {
118 typedef void (*CoinSighandler_t)(int);
119 }
120 #endif
121
122 //#############################################################################
123
124 #endif
125
126 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
127 */
CoinSighandler_t
void(* CoinSighandler_t)(int)
Definition: CoinSignal.hpp:118