mirror of
https://github.com/json-c/json-c.git
synced 2026-04-05 05:19:07 +08:00
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>
This commit is contained in:
@@ -4,10 +4,20 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <errno.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
|
#ifndef STRERROR_OVERRIDE_IMPL
|
||||||
#define strerror _json_c_strerror
|
#define strerror _json_c_strerror
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _json_strerror_override_h_ */
|
#endif /* _json_strerror_override_h_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user