]> git.lizzy.rs Git - shadowclad.git/commitdiff
Choose C99 and make code a bit more standards-compliant
authoroutfrost <kotlet.bahn@gmail.com>
Tue, 29 Jan 2019 18:36:34 +0000 (19:36 +0100)
committeroutfrost <kotlet.bahn@gmail.com>
Tue, 29 Jan 2019 18:36:34 +0000 (19:36 +0100)
Makefile
performance.c

index 8e44c7e8038faca9a55ea5f5e11c9ae01d7b7347..28a753a23d6bc51b2918846defb856842fddb2ef 100644 (file)
--- 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)
 
index 267cf36622229885a4296509ba9e72d86b2cb913..916517b98ae8c2b9da064d04c4e0fff1b237910d 100644 (file)
@@ -1,3 +1,7 @@
+#ifndef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE 199309L
+#endif
+
 #include <stdbool.h>
 #include <stdio.h> // TODO remove
 #include <time.h>