Author: sebor
Date: Thu Oct 11 15:44:30 2007
New Revision: 583980

URL: http://svn.apache.org/viewvc?rev=583980&view=rev
Log:
2007-10-11  Martin Sebor  <[EMAIL PROTECTED]>

        STDCXX-586
        * WCHAR_T.cpp [_RWSTD_NO_NATIVE_WCHAR_T] (<wchar.h>): Guarded #include
        directive to prevent failures when wchar_t is already known to be a
        fundamental type.

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

Modified: incubator/stdcxx/trunk/etc/config/src/WCHAR_T.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/WCHAR_T.cpp?rev=583980&r1=583979&r2=583980&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/WCHAR_T.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/WCHAR_T.cpp Thu Oct 11 15:44:30 2007
@@ -24,8 +24,11 @@
 
 #include "config.h"
 
-#ifndef _RWSTD_NO_WCHAR_H
-#  include <wchar.h>
-#endif   // _RWSTD_NO_WCHAR_H
+#ifdef _RWSTD_NO_NATIVE_WCHAR_T
+#  ifndef _RWSTD_NO_WCHAR_H
+#    include <wchar.h>
+#  endif   // _RWSTD_NO_WCHAR_H
+#endif   // _RWSTD_NO_NATIVE_WCHAR_T
+
 
 wchar_t c = L'\0';


Reply via email to