From: Maximilian Gaß Date: Sat, 6 Jun 2009 18:35:09 +0000 (+0200) Subject: Build in C99 mode X-Git-Url: http://git.maemo.org/git/?a=commitdiff_plain;h=2e1033c24873586d8cc0ace2d76de30a6408d06d;p=uzbl-mobile Build in C99 mode --- 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 #include