blob: 2bbf0d04a462d02389f6e91d52c8809c524bc786 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
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
|