changeset 12:054398f65efe

Bugfix: fix compiling under VS6, when stdint.h enclosed in 'extern "C" {}'.
author ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde
date Sun, 11 Feb 2007 17:04:32 +0000
parents bfc13f31112f
children 334a22353122
files stdint.h
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stdint.h
+++ b/stdint.h
@@ -42,7 +42,13 @@
 
 #include <BaseTsd.h>
 #include <limits.h>
-#include <wchar.h>
+#if _MSC_VER >= 1300
+// Include wchar.h only for Visual Studio 2002 or later.
+// If you try using this header inside 'extern "C" {}' VS6 will give you bunch
+// of compiler errors like this:
+//   error C2733: second C linkage of overloaded function 'wmemchr' not allowed
+#  include <wchar.h>
+#endif
 
 // 7.18.1 Integer types