This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] more cygwin time.h cleanups


2005-11-18  Christopher Faylor  <cgf@timesys.com>

	* include/time.h: Remove more cygwin-specific stuff.

2005-11-18  Christopher Faylor  <cgf@timesys.com>

	* include/time.h: Move cygwin declarations to cygwin-specific header.
	* include/sys/time.h: Rename cygwin include to "sys_time.h".

Index: libc/include/time.h
===================================================================
RCS file: /cvs/uberbaum/newlib/libc/include/time.h,v
retrieving revision 1.17
diff -u -r1.17 time.h
--- libc/include/time.h	18 Nov 2005 15:45:54 -0000	1.17
+++ libc/include/time.h	18 Nov 2005 15:53:39 -0000
@@ -123,20 +123,6 @@
 #ifndef tzname
 #define tzname _tzname
 #endif
-
-/* CYGWIN also exposes daylight and timezone in the name space */
-#ifdef __CYGWIN__
-#ifndef daylight
-#define daylight _daylight
-#endif
-#ifdef timezonevar
-#ifndef timezone
-#define timezone _timezone
-#endif
-#else
-char *_EXFUN(timezone, (void));
-#endif
-#endif /* __CYGWIN__ */
 #endif /* !__STRICT_ANSI__ */
 
 #ifdef __cplusplus
@@ -217,10 +203,6 @@
    associated with a time.  */
 
 #define TIMER_ABSTIME	4
-#ifdef __CYGWIN__
-# define TIMER_RELTIME	0	/* For compatibility with HP/UX, Solaris,
-				   others? */
-#endif
 
 /* Manifest Constants, P1003.4b/D8, p. 55 */
 
Index: libc/include/sys/time.h
===================================================================
RCS file: /cvs/uberbaum/newlib/libc/include/sys/time.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- libc/include/sys/time.h	11 Nov 2005 16:23:36 -0000	1.7
+++ libc/include/sys/time.h	18 Nov 2005 15:45:54 -0000	1.8
@@ -24,7 +24,7 @@
 };
 
 #ifdef __CYGWIN__
-#include <cygwin/time.h>
+#include <cygwin/sys_time.h>
 #endif /* __CYGWIN__ */
 
 #endif /* _WINSOCK_H */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]