summaryrefslogtreecommitdiffhomepage
path: root/src/gestures.h
diff options
context:
space:
mode:
authorRay <[email protected]>2017-03-24 10:43:34 +0100
committerGitHub <[email protected]>2017-03-24 10:43:34 +0100
commit3f0c29642225f4da40e29e83117a4589f95be538 (patch)
tree3ab4d3ef3a49e0f75dac253098611d1f3e6a70b9 /src/gestures.h
parent6ba5217c28dd8b2bb29ce9ebb4660b5022cfbd1a (diff)
parentff44cb02e754a7d408e33ad7d9af11e8b561720c (diff)
downloadraylib-3f0c29642225f4da40e29e83117a4589f95be538.tar.gz
raylib-3f0c29642225f4da40e29e83117a4589f95be538.zip
Merge pull request #248 from RDR8/linux-c99
linux-c99
Diffstat (limited to 'src/gestures.h')
-rw-r--r--src/gestures.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gestures.h b/src/gestures.h
index 42ced889..c97871e5 100644
--- a/src/gestures.h
+++ b/src/gestures.h
@@ -147,7 +147,7 @@ float GetGesturePinchAngle(void); // Get gesture pinch ang
// Functions required to query time on Windows
int __stdcall QueryPerformanceCounter(unsigned long long int *lpPerformanceCount);
int __stdcall QueryPerformanceFrequency(unsigned long long int *lpFrequency);
-#elif defined(__linux)
+#elif defined(__linux__)
#include <sys/time.h> // Required for: timespec
#include <time.h> // Required for: clock_gettime()
#endif
@@ -517,7 +517,7 @@ static double GetCurrentTime(void)
time = (double)currentTime/clockFrequency*1000.0f; // Time in miliseconds
#endif
-#if defined(__linux)
+#if defined(__linux__)
// NOTE: Only for Linux-based systems
struct timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);