1 /* bzflag 2 * Copyright (c) 1993-2021 Tim Riker 3 * 4 * This package is free software; you can redistribute it and/or 5 * modify it under the terms of the license found in the file 6 * named COPYING that should have accompanied this file. 7 * 8 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 9 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 10 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 11 */ 12 13 #ifndef __BZSIGNAL_H__ 14 #define __BZSIGNAL_H__ 15 16 #ifdef HAVE_CONFIG_H 17 #include "config.h" 18 #endif 19 20 #include <signal.h> 21 22 #if !defined(__sgi) 23 /* some platforms don't have a SIG_PF type. */ 24 #ifndef SIG_PF 25 typedef void (*SIG_PF)(int); 26 #endif 27 #endif /* defined(__sgi) */ 28 29 #ifdef __cplusplus 30 extern "C" { 31 #endif 32 33 SIG_PF bzSignal(int signo, SIG_PF func); 34 35 #ifdef __cplusplus 36 } 37 #endif 38 39 #endif // __BZSIGNAL_H__ 40 41 /* 42 * Local Variables: *** 43 * mode: C++ *** 44 * tab-width: 8 *** 45 * c-basic-offset: 2 *** 46 * indent-tabs-mode: t *** 47 * End: *** 48 * ex: shiftwidth=2 tabstop=8 49 */ 50