aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Maximilian Gaß <mxey@ghosthacking.net>2009-06-06 20:35:09 +0200
committerGravatar Maximilian Gaß <mxey@ghosthacking.net>2009-06-06 20:35:09 +0200
commit2e1033c24873586d8cc0ace2d76de30a6408d06d (patch)
tree46fbce8941348a91182f9aa7076929b804b216bc
parent579dbd0425b8ef71672379835997c519ee703fcb (diff)
Build in C99 mode
-rw-r--r--Makefile2
-rw-r--r--uzbl.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e650c29..4c3a483 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS:=$(shell pkg-config --cflags gtk+-2.0 webkit-1.0) -ggdb -Wall -W -DARCH="\"$(shell uname -m)\"" -DG_ERRORCHECK_MUTEXES -DCOMMIT="\"$(shell git log | head -n1 | sed "s/.* //")\"" $(CPPFLAGS)
+CFLAGS:=-std=c99 $(shell pkg-config --cflags gtk+-2.0 webkit-1.0) -ggdb -Wall -W -DARCH="\"$(shell uname -m)\"" -DG_ERRORCHECK_MUTEXES -DCOMMIT="\"$(shell git log | head -n1 | sed "s/.* //")\"" $(CPPFLAGS)
LDFLAGS:=$(shell pkg-config --libs gtk+-2.0 webkit-1.0) $(LDFLAGS)
all: uzbl uzblctrl
diff --git a/uzbl.c b/uzbl.c
index bd54c7d..ddaadf7 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -32,6 +32,7 @@
#define LENGTH(x) (sizeof x / sizeof x[0])
#define MAX_BINDINGS 256
+#define _POSIX_SOURCE
#include <gtk/gtk.h>
#include <gdk/gdkx.h>