summaryrefslogtreecommitdiffhomepage
path: root/src/gestures.h
diff options
context:
space:
mode:
authorRDR8 <[email protected]>2017-03-24 01:20:24 -0500
committerRDR8 <[email protected]>2017-03-24 01:20:24 -0500
commit9875198a56263b5e282c016c67221ddfcfb51d31 (patch)
treedb361e29c361c657a4814b11351a4736de3d0c37 /src/gestures.h
parent6ba5217c28dd8b2bb29ce9ebb4660b5022cfbd1a (diff)
downloadraylib-9875198a56263b5e282c016c67221ddfcfb51d31.tar.gz
raylib-9875198a56263b5e282c016c67221ddfcfb51d31.zip
c99 fix, some linux housekeeping
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);