diff options
| author | Ray <[email protected]> | 2021-03-02 12:45:23 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-02 12:45:23 +0100 |
| commit | ab36fbf24aa7fd89bfe0414276b0a962812ff62c (patch) | |
| tree | 80ae37a1b215e7d37c3c44007e05c61b74887351 /src/physac.h | |
| parent | 2a5ce960474d5aafa1787b9c7d780f833bc4be4e (diff) | |
| download | raylib-ab36fbf24aa7fd89bfe0414276b0a962812ff62c.tar.gz raylib-ab36fbf24aa7fd89bfe0414276b0a962812ff62c.zip | |
Reviewed defines, try to avoid elif statements
Diffstat (limited to 'src/physac.h')
| -rw-r--r-- | src/physac.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/physac.h b/src/physac.h index fde0b90e..4b419bba 100644 --- a/src/physac.h +++ b/src/physac.h @@ -258,13 +258,15 @@ PHYSACDEF Vector2 GetPhysicsShapeVertex(PhysicsBody body, int vertex); // 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__) + #endif + #if defined(__linux__) || defined(__FreeBSD__) #if _POSIX_C_SOURCE < 199309L #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 199309L // Required for CLOCK_MONOTONIC if compiled with c99 without gnu ext. #endif #include <sys/time.h> // Required for: timespec - #elif defined(__APPLE__) // macOS also defines __MACH__ + #endif + #if defined(__APPLE__) // macOS also defines __MACH__ #include <mach/mach_time.h> // Required for: mach_absolute_time() #endif #endif |
