summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2015-11-01 10:04:47 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2015-11-01 10:04:47 (GMT)
commitf15555ee16921352ec00f90e8687b4a17f8195bb (patch)
tree874cd54eccda78753a542f91377c270d8f9d303b
parentfe31edd04e7789b8e6050729809d6b76fc42dd3d (diff)
downloadlibsvgtiny-f15555ee16921352ec00f90e8687b4a17f8195bb.tar.gz
libsvgtiny-f15555ee16921352ec00f90e8687b4a17f8195bb.tar.bz2
Fix build with certain C libraries.
-rw-r--r--src/svgtiny_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svgtiny_internal.h b/src/svgtiny_internal.h
index 0fd5af9..542a0d0 100644
--- a/src/svgtiny_internal.h
+++ b/src/svgtiny_internal.h
@@ -71,7 +71,7 @@ void svgtiny_parse_transform(char *s, float *ma, float *mb,
struct svgtiny_shape *svgtiny_add_shape(struct svgtiny_parse_state *state);
void svgtiny_transform_path(float *p, unsigned int n,
struct svgtiny_parse_state *state);
-#if defined(_GNU_SOURCE)
+#if (defined(_GNU_SOURCE) && !defined(__APPLE__) || defined(__amigaos4__) || defined(__HAIKU__) || (defined(_POSIX_C_SOURCE) && ((_POSIX_C_SOURCE - 0) >= 200809L)))
#define HAVE_STRNDUP
#else
#undef HAVE_STRNDUP