]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
strerror_override: re-organize strerror_override.h
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Tue, 7 Nov 2017 14:21:52 +0000 (16:21 +0200)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Tue, 7 Nov 2017 14:48:53 +0000 (16:48 +0200)
Always include <string.h> before _json_c_strerror() definition.
Should fix linker issues on MSVC.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
strerror_override.h

index 15d8320badae5ac2621b7c614fd8dba846251eea..5c087f3d2c76e080f7f3156260205369707d9146 100644 (file)
 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