diff options
author | Chris Robinson <[email protected]> | 2014-05-31 17:41:10 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-05-31 17:41:10 -0700 |
commit | 933f51a8bfd1776690cd1cae2e01f35ec3bf3536 (patch) | |
tree | 8f04b7115155894d89dfe2ac1b2d2340dcdcb91d /include/threads.h | |
parent | 1d45c439b83565699a1fc220dc7f34c9ceb11a7e (diff) |
Only define struct timespec if _TIMESPEC_DEFINED isn't set
This matches what the mingw-w64 headers define with the struct.
Diffstat (limited to 'include/threads.h')
-rw-r--r-- | include/threads.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/threads.h b/include/threads.h index cde4b91f..25a75625 100644 --- a/include/threads.h +++ b/include/threads.h @@ -33,11 +33,17 @@ typedef void (*altss_dtor_t)(void*); #include <windows.h> -#ifndef __MINGW32__ +#ifndef _TIMESPEC_DEFINED +#define _TIMESPEC_DEFINED struct timespec { time_t tv_sec; long tv_nsec; }; + +struct itimerspec { + struct timespec it_interval; + struct timespec it_value; +}; #endif typedef DWORD althrd_t; |