diff options
Diffstat (limited to 'newlib/libc/include/time.h')
-rw-r--r-- | newlib/libc/include/time.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h index 0ef5e958e..60603e198 100644 --- a/newlib/libc/include/time.h +++ b/newlib/libc/include/time.h @@ -145,6 +145,10 @@ char *_EXFUN(timezone, (void)); #include <sys/features.h> +#ifdef __CYGWIN__ +#include <cygwin/time.h> +#endif /*__CYGWIN__*/ + #if defined(_POSIX_TIMERS) #include <signal.h> @@ -183,16 +187,6 @@ int _EXFUN(nanosleep, (const struct timespec *rqtp, struct timespec *rmtp)); #ifdef __cplusplus } #endif -#else -#ifdef __CYGWIN__ -#ifdef __cplusplus -extern "C" { -#endif -int _EXFUN(nanosleep, (const struct timespec *rqtp, struct timespec *rmtp)); -#ifdef __cplusplus -} -#endif -#endif /* __CYGWIN__ */ #endif /* _POSIX_TIMERS */ #ifdef __cplusplus |