2017-07-15 07:12:44 -07:00
|
|
|
#ifndef _json_strerror_override_h_
|
|
|
|
|
#define _json_strerror_override_h_
|
2017-07-13 10:11:15 +03:00
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
2017-07-19 15:10:10 +03:00
|
|
|
#include "json_object.h" /* for JSON_EXPORT */
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
JSON_EXPORT char *_json_c_strerror(int errno_in);
|
2017-07-15 07:12:44 -07:00
|
|
|
|
|
|
|
|
#ifndef STRERROR_OVERRIDE_IMPL
|
2017-07-13 10:11:15 +03:00
|
|
|
#define strerror _json_c_strerror
|
2017-07-27 20:17:25 -07:00
|
|
|
#else
|
|
|
|
|
#include <string.h>
|
2017-07-13 10:11:15 +03:00
|
|
|
#endif
|
|
|
|
|
|
2017-07-19 15:10:10 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-07-15 07:12:44 -07:00
|
|
|
#endif /* _json_strerror_override_h_ */
|