stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r367886 - in /incubator/stdcxx/trunk/etc/config/src: MBSTATE_T.cpp STD_MBSTATE_T.cpp
Date Wed, 11 Jan 2006 02:54:55 GMT
Author: sebor
Date: Tue Jan 10 18:54:51 2006
New Revision: 367886

URL: http://svn.apache.org/viewcvs?rev=367886&view=rev
Log:
i2006-01-10  Martin Sebor  <sebor@roguewave.com>

	* STD_MBSTATE_T.cpp: New config test.
	* MBSTATE_T.cpp: Guarded the inclusion of "config.h"

Added:
    incubator/stdcxx/trunk/etc/config/src/STD_MBSTATE_T.cpp   (with props)
Modified:
    incubator/stdcxx/trunk/etc/config/src/MBSTATE_T.cpp

Modified: incubator/stdcxx/trunk/etc/config/src/MBSTATE_T.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/src/MBSTATE_T.cpp?rev=367886&r1=367885&r2=367886&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/MBSTATE_T.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/MBSTATE_T.cpp Tue Jan 10 18:54:51 2006
@@ -1,6 +1,8 @@
 // checking for mbstate_t in <wchar.h> and <wctype.h>
 
-#include "config.h"
+#if defined (_RWSTD_USE_CONFIG)
+#  include "config.h"
+#endif   // _RWSTD_USE_CONFIG
 
 // defined to get the correct definition of mbstate_t, available on HPUX;
 // once we get the correct size of the struct, _RWSTD_NO_MBSTATE_T is 

Added: incubator/stdcxx/trunk/etc/config/src/STD_MBSTATE_T.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/src/STD_MBSTATE_T.cpp?rev=367886&view=auto
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/STD_MBSTATE_T.cpp (added)
+++ incubator/stdcxx/trunk/etc/config/src/STD_MBSTATE_T.cpp Tue Jan 10 18:54:51 2006
@@ -0,0 +1,17 @@
+// checking for std::mbstate_t in <wchar.h> and <wctype.h>
+
+#if defined (_RWSTD_USE_CONFIG)
+#  include "config.h"
+#endif   // _RWSTD_USE_CONFIG
+
+#ifndef _RWSTD_NO_WCHAR_H
+#  include <wchar.h>
+#endif   // _RWSTD_NO_WCHAR_H
+
+#ifndef _RWSTD_NO_WCTYPE_H
+#  include <wctype.h>
+#endif
+
+// compile-only test:
+// check to see if the headers above declared mbstate_t in namespace std
+std::mbstate_t dummy_state;

Propchange: incubator/stdcxx/trunk/etc/config/src/STD_MBSTATE_T.cpp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/stdcxx/trunk/etc/config/src/STD_MBSTATE_T.cpp
------------------------------------------------------------------------------
    svn:keywords = Id



Mime
View raw message