PR #336: since we can't use function overriding (due to problems with it on

OSX) always include the _json_c_strerror function but only enable it with a flag
 during tests.
This commit is contained in:
Eric Haszlakiewicz
2017-07-15 07:12:44 -07:00
parent 730ab7b019
commit fcad0ec015
6 changed files with 19 additions and 27 deletions

View File

@@ -1,12 +1,13 @@
#ifndef __STRERROR_OVERRIDE_H__
#define __STRERROR_OVERRIDE_H__
#ifndef _json_strerror_override_h_
#define _json_strerror_override_h_
#include "config.h"
#include <errno.h>
#if ENABLE_STRERROR_OVERRIDE
char *_json_c_strerror(int errno_in);
#ifndef STRERROR_OVERRIDE_IMPL
#define strerror _json_c_strerror
#endif
#endif /* __STRERROR_OVERRIDE_H__ */
#endif /* _json_strerror_override_h_ */