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 <[EMAIL PROTECTED]>
* 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