diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2010-04-24 15:22:17 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2010-04-24 15:22:17 +0000 |
commit | 03bb3e863663a034434b000fbfce2de7e908ba24 (patch) | |
tree | 0527de17bf999b709511880217423cea13a2ad51 /riscos | |
parent | fe151c135d3ffe3dff155d51f4f2680024ae8382 (diff) | |
download | netsurf-03bb3e863663a034434b000fbfce2de7e908ba24.tar.gz netsurf-03bb3e863663a034434b000fbfce2de7e908ba24.tar.bz2 |
remove _GNU_SOURCE define from everywhere.
strndup is not standard so provide an implementation.
svn path=/trunk/netsurf/; revision=10474
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/query.c | 1 | ||||
-rw-r--r-- | riscos/ucstables.c | 1 | ||||
-rw-r--r-- | riscos/url_protocol.c | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/riscos/query.c b/riscos/query.c index 3cf18ac63..8a0087feb 100644 --- a/riscos/query.c +++ b/riscos/query.c @@ -16,7 +16,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#define _GNU_SOURCE /* for strnlen */ #include <stdlib.h> #include <string.h> diff --git a/riscos/ucstables.c b/riscos/ucstables.c index 59ee8576a..9b259766c 100644 --- a/riscos/ucstables.c +++ b/riscos/ucstables.c @@ -20,7 +20,6 @@ * UCS conversion tables and RISC OS-specific UTF-8 text handling */ -#define _GNU_SOURCE /* for strndup */ #include <assert.h> #include <limits.h> #include <string.h> diff --git a/riscos/url_protocol.c b/riscos/url_protocol.c index 8b06d6f75..7629fd3d3 100644 --- a/riscos/url_protocol.c +++ b/riscos/url_protocol.c @@ -26,7 +26,6 @@ #include "utils/config.h" -#define _GNU_SOURCE /* for strndup */ #include <ctype.h> #include <stdio.h> #include <string.h> |