mirror of
https://github.com/json-c/json-c.git
synced 2026-03-24 15:39:07 +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" {
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
|
||||
JSON_EXPORT char *_json_c_strerror(int errno_in);
|
||||
|
||||
#ifndef STRERROR_OVERRIDE_IMPL
|
||||
#define strerror _json_c_strerror
|
||||
#else
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user