stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r521934 - /incubator/stdcxx/trunk/etc/config/src/STRUCT_TM_IN_WCHAR_H.cpp
Date Fri, 23 Mar 2007 23:09:41 GMT
Author: sebor
Date: Fri Mar 23 16:09:40 2007
New Revision: 521934

URL: http://svn.apache.org/viewvc?view=rev&rev=521934
Log:
2007-03-23  Martin Sebor  <sebor@roguewave.com>

	STDCXX-364
	* STRUCT_TM_IN_WCHAR_H.cpp: Checked only for the declaration of struct
	tm, not its definition (according to 7.24.1, p2 of C99, struct tm is
	required to declared as an incomplete type in <wchar.h>).

Modified:
    incubator/stdcxx/trunk/etc/config/src/STRUCT_TM_IN_WCHAR_H.cpp

Modified: incubator/stdcxx/trunk/etc/config/src/STRUCT_TM_IN_WCHAR_H.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/STRUCT_TM_IN_WCHAR_H.cpp?view=diff&rev=521934&r1=521933&r2=521934
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/STRUCT_TM_IN_WCHAR_H.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/STRUCT_TM_IN_WCHAR_H.cpp Fri Mar 23 16:09:40 2007
@@ -1,8 +1,11 @@
-// checking for struct tm in <wchar.h>
+// checking for struct tm declaration in <wchar.h>
 
 #include <wchar.h>
 
-struct tm foo (struct tm arg)
+// 7.24.1, p2 of C99: struct tm is required to declared
+// as an incomplete type in <wchar.h>
+
+struct tm* struct_tm_declared (struct tm* arg)
 {
     return arg;
 }



Mime
View raw message