[project @ 2005-08-20 23:04:35 by bursa]

Fix strndup() warnings.

svn path=/import/netsurf/; revision=1850
This commit is contained in:
James Bursa 2005-08-20 23:04:35 +00:00
parent 8afd957986
commit 4af7520647
3 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,8 @@
/** \file
* 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>

View File

@ -13,6 +13,7 @@
* See http://www.vigay.com/inet/inet_url.html
*/
#define _GNU_SOURCE /* for strndup */
#include <ctype.h>
#include <stdio.h>
#include <string.h>

View File

@ -9,6 +9,7 @@
* UTF-8 manipulation functions (implementation).
*/
#define _GNU_SOURCE /* for strndup */
#include <assert.h>
#include <errno.h>
#include <stdlib.h>