From: Alexandru Ardelean Date: Tue, 7 Nov 2017 14:21:52 +0000 (+0200) Subject: strerror_override: re-organize strerror_override.h X-Git-Tag: json-c-0.13-20171207~34^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5641227c9ba1da7dd69f0c3b4a5a024339340d88;p=thirdparty%2Fjson-c.git strerror_override: re-organize strerror_override.h Always include before _json_c_strerror() definition. Should fix linker issues on MSVC. Signed-off-by: Alexandru Ardelean --- diff --git a/strerror_override.h b/strerror_override.h index 15d8320b..5c087f3d 100644 --- a/strerror_override.h +++ b/strerror_override.h @@ -10,12 +10,12 @@ extern "C" { #endif +#include + JSON_EXPORT char *_json_c_strerror(int errno_in); #ifndef STRERROR_OVERRIDE_IMPL #define strerror _json_c_strerror -#else -#include #endif #ifdef __cplusplus