Stamp ChangeLogs for release
[official-gcc.git] / libf2c / libF77 / signal1.h0
blob662cae450dc4cedec2d43e991ad828cfa71981e9
1 /* You may need to adjust the definition of signal1 to supply a */
2 /* cast to the correct argument type.  This detail is system- and */
3 /* compiler-dependent.   The #define below assumes signal.h declares */
4 /* type SIG_PF for the signal function's second argument. */
6 #include <signal.h>
8 #ifndef Sigret_t
9 #define Sigret_t void
10 #endif
11 #ifndef Sigarg_t
12 #ifdef KR_headers
13 #define Sigarg_t
14 #else
15 #ifdef __cplusplus
16 #define Sigarg_t ...
17 #else
18 #define Sigarg_t int
19 #endif
20 #endif
21 #endif /*Sigarg_t*/
23 #ifdef USE_SIG_PF       /* compile with -DUSE_SIG_PF under IRIX */
24 #define sig_pf SIG_PF
25 #else
26 typedef Sigret_t (*sig_pf)(Sigarg_t);
27 #endif
29 #define signal1(a,b) signal(a,(sig_pf)b)
31 #ifdef __cplusplus
32 #define Sigarg ...
33 #define Use_Sigarg
34 #else
35 #define Sigarg Int n
36 #define Use_Sigarg n = n        /* shut up compiler warning */
37 #endif