summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-01-02 22:09:46 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2011-01-02 22:09:46 (GMT)
commitb300ddf3f867664d932e1bb56c2d4afc96b87967 (patch)
tree425c01ff386d56f7ec3a0621d0bc7d32286f4c7a
parent5533143958b16ed87026cdf533fc4d544b2d712f (diff)
downloadlibsvgtiny-b300ddf3f867664d932e1bb56c2d4afc96b87967.tar.gz
libsvgtiny-b300ddf3f867664d932e1bb56c2d4afc96b87967.tar.bz2
s/strndup/svgtiny_strndup
svn path=/trunk/libsvgtiny/; revision=11186
-rw-r--r--src/svgtiny.c2
-rw-r--r--src/svgtiny_internal.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/svgtiny.c b/src/svgtiny.c
index af1db24..8fa09a5 100644
--- a/src/svgtiny.c
+++ b/src/svgtiny.c
@@ -1232,7 +1232,7 @@ void svgtiny_free(struct svgtiny_diagram *svg)
}
#ifndef HAVE_STRNDUP
-char *strndup(const char *s, size_t n)
+char *svgtiny_strndup(const char *s, size_t n)
{
size_t len;
char *s2;
diff --git a/src/svgtiny_internal.h b/src/svgtiny_internal.h
index 13db00e..eb90c5b 100644
--- a/src/svgtiny_internal.h
+++ b/src/svgtiny_internal.h
@@ -67,7 +67,8 @@ void svgtiny_transform_path(float *p, unsigned int n,
#define HAVE_STRNDUP
#else
#undef HAVE_STRNDUP
-char *strndup(const char *s, size_t n);
+char *svgtiny_strndup(const char *s, size_t n);
+#define strndup svgtiny_strndup
#endif
/* svgtiny_gradient.c */