From: Alexandru Ardelean Date: Wed, 19 Jul 2017 12:10:10 +0000 (+0300) Subject: strerror_override: add extern "C" and JSON_EXPORT specifiers for Visual C++ compilers X-Git-Tag: json-c-0.13-20171207~68^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddce7c28e401d26ddf8d569f74f642ebf7b4f0b4;p=thirdparty%2Fjson-c.git strerror_override: add extern "C" and JSON_EXPORT specifiers for Visual C++ compilers Fixes build on AppVeyor. Signed-off-by: Alexandru Ardelean --- diff --git a/strerror_override.h b/strerror_override.h index 48b29b38..9b8d70aa 100644 --- a/strerror_override.h +++ b/strerror_override.h @@ -4,10 +4,20 @@ #include "config.h" #include -char *_json_c_strerror(int errno_in); +#include "json_object.h" /* for JSON_EXPORT */ + +#ifdef __cplusplus +extern "C" { +#endif + +JSON_EXPORT char *_json_c_strerror(int errno_in); #ifndef STRERROR_OVERRIDE_IMPL #define strerror _json_c_strerror #endif +#ifdef __cplusplus +} +#endif + #endif /* _json_strerror_override_h_ */