# HG changeset patch # User Daniel J Sebald # Date 1370141569 18000 # Node ID 85cfad3e0902907533006eaca24034c06ddbc13e # Parent 5a51fb7777a9950502965a043a70bd6ca5e0498b Encase signal information functions inside extern "C" qualifier. * sig2str.h: Place extern "C" around sig2str() and str2sig() declarations conditioned on __cplusplus being defined. diff --git a/lib/sig2str.h b/lib/sig2str.h --- a/lib/sig2str.h +++ b/lib/sig2str.h @@ -27,8 +27,14 @@ /* Size of a buffer needed to hold a signal name like "HUP". */ # define SIG2STR_MAX (sizeof "SIGRTMAX" + INT_STRLEN_BOUND (int) - 1) +#ifdef __cplusplus +extern "C" { +#endif int sig2str (int, char *); int str2sig (char const *, int *); +#ifdef __cplusplus +} +#endif #endif