summaryrefslogtreecommitdiff
path: root/json_object.c
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2016-11-16 17:00:45 +0200
committerAlexandru Ardelean <ardeleanalex@gmail.com>2016-11-22 16:37:29 +0200
commit8cb86a583afcb858d14b68216e3232f4e8f3962a (patch)
tree7d11a767740d415a1c0bc25ef8d9a125dd1fc27e /json_object.c
parentc0da680f13a089a124c1c841f55288045a814243 (diff)
downloadjson-c-8cb86a583afcb858d14b68216e3232f4e8f3962a.tar.gz
strdup_compat.h: re-spin this compat header ; use math_compat.h as template
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'json_object.c')
-rw-r--r--json_object.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/json_object.c b/json_object.c
index 8a70b5d..c65941e 100644
--- a/json_object.c
+++ b/json_object.c
@@ -29,13 +29,7 @@
#include "json_object_private.h"
#include "json_util.h"
#include "math_compat.h"
-
-#if !defined(HAVE_STRDUP) && defined(_MSC_VER)
- /* MSC has the version as _strdup */
-# define strdup _strdup
-#elif !defined(HAVE_STRDUP)
-# error You do not have strdup on your system.
-#endif /* HAVE_STRDUP */
+#include "strdup_compat.h"
#if !defined(HAVE_SNPRINTF) && defined(_MSC_VER)
/* MSC has the version as _snprintf */