# HG changeset patch # User ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde # Date 1171213472 0 # Node ID 054398f65efe7b815e4aceee6ff6e9238e1815f3 # Parent bfc13f31112f4cf7bf4265fc33d0ae28f5d515fb Bugfix: fix compiling under VS6, when stdint.h enclosed in 'extern "C" {}'. diff --git a/stdint.h b/stdint.h --- a/stdint.h +++ b/stdint.h @@ -42,7 +42,13 @@ #include #include -#include +#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 +#endif // 7.18.1 Integer types