diff options
Diffstat (limited to 'sched.h')
-rw-r--r-- | sched.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -60,7 +60,7 @@ #define PTW32_LEVEL_MAX 3 -#if !defined(PTW32_LEVEL) +#if ( defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112 ) || !defined(PTW32_LEVEL) #define PTW32_LEVEL PTW32_LEVEL_MAX /* Include everything */ #endif @@ -114,14 +114,14 @@ #endif /* PTW32_LEVEL >= PTW32_LEVEL_MAX */ #if defined(__MINGW32__) || defined(_UWIN) -#if PTW32_LEVEL >= PTW32_LEVEL_MAX +# if PTW32_LEVEL >= PTW32_LEVEL_MAX /* For pid_t */ # include <sys/types.h> /* Required by Unix 98 */ # include <time.h> -#else -typedef int pid_t; -#endif /* PTW32_LEVEL >= PTW32_LEVEL_MAX */ +# else + typedef int pid_t; +# endif #else typedef int pid_t; #endif |