mirror of
https://github.com/json-c/json-c.git
synced 2026-04-05 13:29:06 +08:00
strerror_override: re-organize strerror_override.h
Always include <string.h> before _json_c_strerror() definition. Should fix linker issues on MSVC. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -10,12 +10,12 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
JSON_EXPORT char *_json_c_strerror(int errno_in);
|
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
|
||||||
#else
|
|
||||||
#include <string.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Reference in New Issue
Block a user