Browse Source

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>
tags/json-c-0.13-20171207
Alexandru Ardelean 8 years ago
parent
commit
5641227c9b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      strerror_override.h

+ 2
- 2
strerror_override.h View File

@@ -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


Loading…
Cancel
Save