From 7c3628976808a20ce9bcac046c4b88bffd475241 Mon Sep 17 00:00:00 2001 From: Constantine Tarasenkov Date: Fri, 4 Sep 2015 15:38:14 +0300 Subject: [PATCH] Fix compiling on Linux --- src/gestures.c | 3 ++- src/makefile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gestures.c b/src/gestures.c index 27e3830a..4cb61222 100644 --- a/src/gestures.c +++ b/src/gestures.c @@ -37,6 +37,7 @@ #if defined(_WIN32) //#include #elif defined(__linux) + #include // Declares storage size of ‘now’ #include // Used for clock functions #endif @@ -659,4 +660,4 @@ static EM_BOOL EmscriptenInputCallback(int eventType, const EmscriptenTouchEvent return 1; } -#endif \ No newline at end of file +#endif diff --git a/src/makefile b/src/makefile index da57c2d2..a42bf060 100644 --- a/src/makefile +++ b/src/makefile @@ -73,7 +73,7 @@ endif ifeq ($(PLATFORM),PLATFORM_RPI) CFLAGS = -O1 -Wall -std=gnu99 -fgnu89-inline else - CFLAGS = -O1 -Wall -std=c99 + CFLAGS = -O1 -Wall -std=gnu99 endif #CFLAGSEXTRA = -Wextra -Wmissing-prototypes -Wstrict-prototypes