From 03bb3e863663a034434b000fbfce2de7e908ba24 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 24 Apr 2010 15:22:17 +0000 Subject: remove _GNU_SOURCE define from everywhere. strndup is not standard so provide an implementation. svn path=/trunk/netsurf/; revision=10474 --- utils/utils.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'utils/utils.c') diff --git a/utils/utils.c b/utils/utils.c index 175b33073..b0069365e 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -295,7 +295,6 @@ char *strcasestr(const char *haystack, const char *needle) #endif -#ifndef HAVE_STRNDUP /** * Duplicate up to n characters of a string. @@ -318,7 +317,6 @@ char *strndup(const char *s, size_t n) return s2; } -#endif #ifndef HAVE_STRCHRNUL -- cgit v1.2.3