From 730ab7b019c4367fc29d6c55a3fd7f2fe793cf84 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Sat, 15 Jul 2017 07:07:28 -0700 Subject: [PATCH] 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. --- strerror_override_private.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 strerror_override_private.h diff --git a/strerror_override_private.h b/strerror_override_private.h new file mode 100644 index 0000000..c7db84c --- /dev/null +++ b/strerror_override_private.h @@ -0,0 +1,7 @@ +#ifndef __json_strerror_override_private_h__ +#define __json_strerror_override_private_h__ + +/* Used by tests to get consistent output */ +extern int _json_c_strerror_enable; + +#endif