Browse Source

#include header for time() on Windows

pull/440/head
Ahmad Fatoum 7 years ago
parent
commit
520f317a75
No known key found for this signature in database GPG Key ID: C3EAC3DE9321D59B
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/physac.h

+ 1
- 0
src/physac.h View File

@ -255,6 +255,7 @@ PHYSACDEF void ClosePhysics(void);
// Functions required to query time on Windows // Functions required to query time on Windows
int __stdcall QueryPerformanceCounter(unsigned long long int *lpPerformanceCount); int __stdcall QueryPerformanceCounter(unsigned long long int *lpPerformanceCount);
int __stdcall QueryPerformanceFrequency(unsigned long long int *lpFrequency); int __stdcall QueryPerformanceFrequency(unsigned long long int *lpFrequency);
#include <time.h>
#elif defined(__linux__) #elif defined(__linux__)
#if _POSIX_C_SOURCE < 199309L #if _POSIX_C_SOURCE < 199309L
#undef _POSIX_C_SOURCE #undef _POSIX_C_SOURCE

||||||
x
 
000:0
Loading…
Cancel
Save