diff options
author | Alexandru Ardelean <ardeleanalex@gmail.com> | 2017-07-19 15:10:10 +0300 |
---|---|---|
committer | Alexandru Ardelean <ardeleanalex@gmail.com> | 2017-07-19 15:17:39 +0300 |
commit | ddce7c28e401d26ddf8d569f74f642ebf7b4f0b4 (patch) | |
tree | 9d0f43392efcc6b4ab0b1eeabfc300350431542e /strerror_override.h | |
parent | fcad0ec015c1275e7231ee4582bc78b89a2e96da (diff) | |
download | json-c-ddce7c28e401d26ddf8d569f74f642ebf7b4f0b4.tar.gz |
strerror_override: add extern "C" and JSON_EXPORT specifiers for Visual C++ compilers
Fixes build on AppVeyor.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'strerror_override.h')
-rw-r--r-- | strerror_override.h | 12 |
1 files changed, 11 insertions, 1 deletions
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 <errno.h> -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_ */ |