summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2017-07-15 07:07:28 -0700
committerEric Haszlakiewicz <erh+git@nimenees.com>2017-07-15 07:07:28 -0700
commit730ab7b019c4367fc29d6c55a3fd7f2fe793cf84 (patch)
tree6c6b4e37629ce4ddcaca89670e3c33fe46a32bee
parent40317f079efbe8d735fa4d1e09c6b4fbe91012d3 (diff)
downloadjson-c-730ab7b019c4367fc29d6c55a3fd7f2fe793cf84.tar.gz
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.
-rw-r--r--strerror_override_private.h7
1 files changed, 7 insertions, 0 deletions
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