summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-04-24 15:22:17 +0000
committerVincent Sanders <vince@netsurf-browser.org>2010-04-24 15:22:17 +0000
commit03bb3e863663a034434b000fbfce2de7e908ba24 (patch)
tree0527de17bf999b709511880217423cea13a2ad51 /render
parentfe151c135d3ffe3dff155d51f4f2680024ae8382 (diff)
downloadnetsurf-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 'render')
-rw-r--r--render/box_construct.c1
-rw-r--r--render/form.c1
-rw-r--r--render/html.c2
-rw-r--r--render/hubbub_binding.c1
-rw-r--r--render/layout.c1
5 files changed, 0 insertions, 6 deletions
diff --git a/render/box_construct.c b/render/box_construct.c
index 71d30ddae..a5ceb2884 100644
--- a/render/box_construct.c
+++ b/render/box_construct.c
@@ -24,7 +24,6 @@
* Conversion of XML tree to box tree (implementation).
*/
-#define _GNU_SOURCE /* for strndup */
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
diff --git a/render/form.c b/render/form.c
index b81d2ca34..9584aa244 100644
--- a/render/form.c
+++ b/render/form.c
@@ -23,7 +23,6 @@
* Form handling functions (implementation).
*/
-#define _GNU_SOURCE /* for strndup */
#include <assert.h>
#include <ctype.h>
#include <limits.h>
diff --git a/render/html.c b/render/html.c
index 0061ce925..51e466591 100644
--- a/render/html.c
+++ b/render/html.c
@@ -20,8 +20,6 @@
* Content for text/html (implementation).
*/
-#define _GNU_SOURCE /* for strndup() */
-
#include <assert.h>
#include <ctype.h>
#include <stdint.h>
diff --git a/render/hubbub_binding.c b/render/hubbub_binding.c
index 1d8af25ca..fc0a31944 100644
--- a/render/hubbub_binding.c
+++ b/render/hubbub_binding.c
@@ -17,7 +17,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#define _GNU_SOURCE /* for strndup */
#include <assert.h>
#include <stdbool.h>
#include <string.h>
diff --git a/render/layout.c b/render/layout.c
index 336be3e83..93818723f 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -31,7 +31,6 @@
* layout_minmax_X() and layout_X().
*/
-#define _GNU_SOURCE /* for strndup */
#include <assert.h>
#include <limits.h>
#include <stdbool.h>