From d3e81bdac89c4789783cb51ac261bcfbb58df49a Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 18 Nov 2005 15:45:54 +0000 Subject: * include/time.h: Move cygwin declarations to cygwin-specific header. * include/sys/time.h: Rename cygwin include to "sys_time.h". --- newlib/libc/include/time.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'newlib/libc/include/time.h') 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 +#ifdef __CYGWIN__ +#include +#endif /*__CYGWIN__*/ + #if defined(_POSIX_TIMERS) #include @@ -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 -- cgit v1.2.3