Author: sebor
Date: Sat Apr 7 18:15:42 2007
New Revision: 526502
URL: http://svn.apache.org/viewvc?view=rev&rev=526502
Log:
2007-04-07 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-387
* DAYLIGHT.cpp: New config test to determine whether the system
supports the XSI POSIX extension daylight.
* time_put.cpp (daylight): #defined to 0 when _RWSTD_NO_DAYLIGHT
is #defined.
Added:
incubator/stdcxx/trunk/etc/config/src/DAYLIGHT.cpp (with props)
Modified:
incubator/stdcxx/trunk/src/time_put.cpp
Added: incubator/stdcxx/trunk/etc/config/src/DAYLIGHT.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/DAYLIGHT.cpp?view=auto&rev=526502
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/DAYLIGHT.cpp (added)
+++ incubator/stdcxx/trunk/etc/config/src/DAYLIGHT.cpp Sat Apr 7 18:15:42 2007
@@ -0,0 +1,11 @@
+// checking for daylight variable in <time.h>
+
+#include <time.h>
+
+// check to see if the XSI extension to POSIX, daylight,
+// is declared in the header <time.h>
+
+int check_daylight ()
+{
+ return daylight;
+}
Propchange: incubator/stdcxx/trunk/etc/config/src/DAYLIGHT.cpp
------------------------------------------------------------------------------
svn:keywords = Id
Modified: incubator/stdcxx/trunk/src/time_put.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/time_put.cpp?view=diff&rev=526502&r1=526501&r2=526502
==============================================================================
--- incubator/stdcxx/trunk/src/time_put.cpp (original)
+++ incubator/stdcxx/trunk/src/time_put.cpp Sat Apr 7 18:15:42 2007
@@ -100,6 +100,12 @@
#endif // __EDG__ || !_RWSTD_NO_PURE_C_HEADERS
+#ifdef _RWSTD_NO_DAYLIGHT
+ // the XSI POSIX extension, daylight, is not declared in <time.h>
+# define daylight 0
+#endif // _RWSTD_NO_DAYLIGHT
+
+
#if defined (_RWSTD_NO_WCSFTIME) && !defined (_RWSTD_NO_WCSFTIME_IN_LIBC)
# if defined _RWSTD_WCSFTIME_ARG3_T