From ddce7c28e401d26ddf8d569f74f642ebf7b4f0b4 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 19 Jul 2017 15:10:10 +0300 Subject: strerror_override: add extern "C" and JSON_EXPORT specifiers for Visual C++ compilers Fixes build on AppVeyor. Signed-off-by: Alexandru Ardelean --- strerror_override.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'strerror_override.h') diff --git a/strerror_override.h b/strerror_override.h index 48b29b3..9b8d70a 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_ */ -- cgit v1.2.1