From: John Mark Bell Date: Sun, 2 Jan 2011 22:09:46 +0000 (-0000) Subject: s/strndup/svgtiny_strndup X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=b300ddf3f867664d932e1bb56c2d4afc96b87967;p=libsvgtiny.git s/strndup/svgtiny_strndup svn path=/trunk/libsvgtiny/; revision=11186 --- 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 */