From 0fd97a607827a169c673a79214e5d07a96173d9d Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Thu, 30 Dec 2004 18:13:29 +0000 Subject: [PATCH] Unmangle symbol for public use from C. svn path=/trunk/boinc/; revision=4968 --- lib/diagnostics.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/diagnostics.h b/lib/diagnostics.h index 0ebcd6d964..488372e0c2 100644 --- a/lib/diagnostics.h +++ b/lib/diagnostics.h @@ -101,8 +101,15 @@ void boinc_info_release(const char *pszFormat, ...); #else // non-Win starts here #include -extern void boinc_set_signal_handler(int sig, void(*handler)(int)); -extern void boinc_set_signal_handler_force(int sig, void(*handler)(int)); + +#ifdef __cpluplus +extern "C" { +#endif // __cpluplus + extern void boinc_set_signal_handler(int sig, void(*handler)(int)); + extern void boinc_set_signal_handler_force(int sig, void(*handler)(int)); +#ifdef __cpluplus +} +#endif // __cpluplus #endif // ! _WIN32