From 4ec638e84a7eb57fa405c13e442438f5d6278603 Mon Sep 17 00:00:00 2001 From: outfrost Date: Tue, 29 Jan 2019 19:36:34 +0100 Subject: [PATCH] Choose C99 and make code a bit more standards-compliant --- Makefile | 2 +- performance.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.44.0