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
|
|
|
|
2017-12-06 00:20:59 -05:00
|
|
|
/**
|
|
|
|
|
* @file
|
|
|
|
|
* @brief Do not use, json-c internal, may be changed or removed at any time.
|
|
|
|
|
*/
|
|
|
|
|
|
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
|
|
|
|
|
|
2017-11-07 16:21:52 +02:00
|
|
|
#include <string.h>
|
|
|
|
|
|
2017-07-19 15:10:10 +03:00
|
|
|
JSON_EXPORT char *_json_c_strerror(int errno_in);
|
2017-07-15 07:12:44 -07:00
|
|
|
|
|
|
|
|
#ifndef STRERROR_OVERRIDE_IMPL
|
2020-03-28 10:25:00 +08:00
|
|
|
#define strerror _json_c_strerror
|
2017-07-13 10:11:15 +03:00
|
|
|
#endif
|
|
|
|
|
|
2017-07-19 15:10:10 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-03-28 10:25:00 +08:00
|
|
|
#endif /* _json_strerror_override_h_ */
|