From: Eric Haszlakiewicz Date: Sat, 15 Jul 2017 14:07:28 +0000 (-0700) Subject: PR #336: since we can't use function overriding (due to problems with it on OSX)... X-Git-Tag: json-c-0.13-20171207~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=730ab7b019c4367fc29d6c55a3fd7f2fe793cf84;p=thirdparty%2Fjson-c.git 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. --- diff --git a/strerror_override_private.h b/strerror_override_private.h new file mode 100644 index 00000000..c7db84ce --- /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