diff options
| author | Ray <raysan5@gmail.com> | 2015-09-04 17:50:16 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2015-09-04 17:50:16 +0200 |
| commit | f582ab06add085594f2579ee6e7d625212abd204 (patch) | |
| tree | 19faf0b98fb30009e570e333b88965999b5a65ac /src | |
| parent | 77558eec0caf0736fa36c96b5807d928317d3dd7 (diff) | |
| parent | 7c3628976808a20ce9bcac046c4b88bffd475241 (diff) | |
| download | raylib-f582ab06add085594f2579ee6e7d625212abd204.tar.gz raylib-f582ab06add085594f2579ee6e7d625212abd204.zip | |
Merge pull request #29 from procedural/linux-fixes
Fix compiling on Linux
Diffstat (limited to 'src')
| -rw-r--r-- | src/gestures.c | 3 | ||||
| -rw-r--r-- | 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 <Windows.h> #elif defined(__linux) + #include <sys/time.h> // Declares storage size of ‘now’ #include <time.h> // 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 |
