stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r554699 - /incubator/stdcxx/trunk/include/ansi/wchar.h
Date Mon, 09 Jul 2007 16:42:27 GMT
Author: sebor
Date: Mon Jul  9 09:42:25 2007
New Revision: 554699

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

	* wchar.h (swprintf): Avoided declaring function for MSVC 8 so as
	not to cause a collision with the compiler's own horribly hacked up
	declaration.

Modified:
    incubator/stdcxx/trunk/include/ansi/wchar.h

Modified: incubator/stdcxx/trunk/include/ansi/wchar.h
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/ansi/wchar.h?view=diff&rev=554699&r1=554698&r2=554699
==============================================================================
--- incubator/stdcxx/trunk/include/ansi/wchar.h (original)
+++ incubator/stdcxx/trunk/include/ansi/wchar.h Mon Jul  9 09:42:25 2007
@@ -228,7 +228,13 @@
 #  endif   // _RWSTD_NO_FWSCANF && !_RWSTD_NO_FWSCANF_IN_LIBC
 
 #  if defined (_RWSTD_NO_SWPRINTF) && !defined (_RWSTD_NO_SWPRINTF_IN_LIBC)
+#    if !defined (_MSC_VER) || _MSC_VER < 1400
+
+// disabled for MSVC 8.0 and beyond to avoid running into its awful
+// declaration hackery
 int swprintf (wchar_t*, const wchar_t*, ...);
+
+#    endif   // !MSVC || MSVC < 8.0
 #    undef _RWSTD_NO_SWPRINTF
 #  endif   // _RWSTD_NO_SWPRINTF && !_RWSTD_NO_SWPRINTF_IN_LIBC
 



Mime
View raw message