# HG changeset patch # User ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde # Date 1242077265 0 # Node ID c0040f8fc49bd5a0699ca91c3fd37a547ba299dc # Parent 9be805b7c8c6aedc2f5588545311096a75c6e3ef [Issue 2] Always wrap -// For Visual Studio 6 in C++ mode wrap include with 'extern "C++" {}' +// For Visual Studio 6 in C++ mode and for many Visual Studio versions when +// compiling for ARM we should wrap include with 'extern "C++" {}' // or compiler give many errors like this: // error C2733: second C linkage of overloaded function 'wmemchr' not allowed -#if (_MSC_VER < 1300) && defined(__cplusplus) - extern "C++" { -#endif -# include -#if (_MSC_VER < 1300) && defined(__cplusplus) - } -#endif +extern "C" { +# include +} // Define _W64 macros to mark types changing their size, like intptr_t. #ifndef _W64