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:
parent
c15b8bfd6f
commit
defbeca1b8
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user