mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 09:39:01 +08:00
81fea2b1d1
"libf2c" directory. From-SVN: r17568
26 lines
620 B
Plaintext
26 lines
620 B
Plaintext
/* You may need to adjust the definition of signal1 to supply a */
|
|
/* cast to the correct argument type. This detail is system- and */
|
|
/* compiler-dependent. The #define below assumes signal.h declares */
|
|
/* type SIG_PF for the signal function's second argument. */
|
|
|
|
#include <signal.h>
|
|
|
|
#ifndef Sigret_t
|
|
#define Sigret_t void
|
|
#endif
|
|
#ifndef Sigarg_t
|
|
#ifdef KR_headers
|
|
#define Sigarg_t
|
|
#else
|
|
#define Sigarg_t int
|
|
#endif
|
|
#endif /*Sigarg_t*/
|
|
|
|
#ifdef USE_SIG_PF /* compile with -DUSE_SIG_PF under IRIX */
|
|
#define sig_pf SIG_PF
|
|
#else
|
|
typedef Sigret_t (*sig_pf)(Sigarg_t);
|
|
#endif
|
|
|
|
#define signal1(a,b) signal(a,(sig_pf)b)
|