From: outfrost Date: Tue, 29 Jan 2019 18:36:34 +0000 (+0100) Subject: Choose C99 and make code a bit more standards-compliant X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=4ec638e84a7eb57fa405c13e442438f5d6278603;p=shadowclad.git Choose C99 and make code a bit more standards-compliant --- diff --git a/Makefile b/Makefile index 8e44c7e..28a753a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS ::= -g -Wall -Wextra -Wpedantic $(CFLAGS) +CFLAGS ::= -g -std=c99 -Wall -Wextra -Wpedantic $(CFLAGS) LDFLAGS ::= $(LDFLAGS) LDLIBS ::= -L/usr/local/lib -lGL -lGLEW -lglut -lassimp $(LDLIBS) diff --git a/performance.c b/performance.c index 267cf36..916517b 100644 --- a/performance.c +++ b/performance.c @@ -1,3 +1,7 @@ +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 199309L +#endif + #include #include // TODO remove #include