mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 18:15:10 +00:00
Fixed TinyCThread declaring timespec on OS X.
This commit is contained in:
parent
2b946289d8
commit
50d68c83bb
@ -104,14 +104,16 @@ freely, subject to the following restrictions:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Workaround for missing clock_gettime (most Windows compilers, afaik) */
|
/* Workaround for missing clock_gettime (most Windows compilers, afaik) */
|
||||||
#if defined(_TTHREAD_WIN32_)
|
#if defined(_TTHREAD_WIN32_) || defined(__APPLE_CC__)
|
||||||
#define _TTHREAD_EMULATE_CLOCK_GETTIME_
|
#define _TTHREAD_EMULATE_CLOCK_GETTIME_
|
||||||
/* Emulate struct timespec */
|
/* Emulate struct timespec */
|
||||||
|
#if defined(_TTHREAD_WIN32_)
|
||||||
struct _ttherad_timespec {
|
struct _ttherad_timespec {
|
||||||
time_t tv_sec;
|
time_t tv_sec;
|
||||||
long tv_nsec;
|
long tv_nsec;
|
||||||
};
|
};
|
||||||
#define timespec _ttherad_timespec
|
#define timespec _ttherad_timespec
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Emulate clockid_t */
|
/* Emulate clockid_t */
|
||||||
typedef int _tthread_clockid_t;
|
typedef int _tthread_clockid_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user