use extern C around signal handler declaration (fixes Sun CC warning)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-09-13 15:57:02 +00:00
parent c15b8bfd6f
commit defbeca1b8

View File

@ -159,12 +159,11 @@ int _System soclose(int);
#define UNMASK_SIGNAL() }
#else
extern "C" { typedef void (*wxSigHandler)(int); }
#define MASK_SIGNAL() \
{ \
void (*old_handler)(int); \
\
old_handler = signal(SIGPIPE, SIG_IGN);
wxSigHandler old_handler = signal(SIGPIPE, SIG_IGN);
#define UNMASK_SIGNAL() \
signal(SIGPIPE, old_handler); \