diff options
| author | Ray <[email protected]> | 2017-06-11 16:22:53 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-06-11 16:22:53 +0200 |
| commit | 4b1bc7f65eb535aa1d9108e9db080e9179f02f62 (patch) | |
| tree | 6fc7fa1e38e0e5c22dd03c5fb14bf335925501b5 /src/gestures.h | |
| parent | b6d7fa9bb0775023a974a03e7919203a3f757a01 (diff) | |
| parent | 272073785f17f9b202a5b2a62265bbbd2940b07e (diff) | |
| download | raylib-4b1bc7f65eb535aa1d9108e9db080e9179f02f62.tar.gz raylib-4b1bc7f65eb535aa1d9108e9db080e9179f02f62.zip | |
Merge pull request #301 from jubalh/time
Add define to have CLOCK_MONOTONIC work in c99
Diffstat (limited to 'src/gestures.h')
| -rw-r--r-- | src/gestures.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gestures.h b/src/gestures.h index f04bf091..f4d38dfb 100644 --- a/src/gestures.h +++ b/src/gestures.h @@ -148,8 +148,9 @@ float GetGesturePinchAngle(void); // Get gesture pinch ang int __stdcall QueryPerformanceCounter(unsigned long long int *lpPerformanceCount); int __stdcall QueryPerformanceFrequency(unsigned long long int *lpFrequency); #elif defined(__linux__) - #include <sys/time.h> // Required for: timespec - #include <time.h> // Required for: clock_gettime() + #define _POSIX_C_SOURCE 199309L // Required for CLOCK_MONOTONIC if compiled with c99 without gnu ext. + #include <sys/time.h> // Required for: timespec + #include <time.h> // Required for: clock_gettime() #endif //---------------------------------------------------------------------------------- |
