From 5641227c9ba1da7dd69f0c3b4a5a024339340d88 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Tue, 7 Nov 2017 16:21:52 +0200 Subject: [PATCH] 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 --- strerror_override.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strerror_override.h b/strerror_override.h index 15d8320..5c087f3 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