From defbeca1b8bbe3853f11e7ee489e8c908629a228 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 13 Sep 2005 15:57:02 +0000 Subject: [PATCH] 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 --- src/unix/gsocket.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index ac1610a0b8..cef26902b3 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -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); \