work around for cygwin broken wchar.h: include extern C ourselves

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-11-04 17:47:18 +00:00
parent fe164e5138
commit ae5dcdf0e6

View File

@@ -90,7 +90,16 @@
#if wxUSE_WCHAR_T
#ifdef HAVE_WCHAR_H
#include <wchar.h>
// the current (as of Nov 2002) version of cygwin has a bug in its
// wchar.h -- there is no extern "C" around the declarations in it and
// this results in linking errors later
#ifdef __CYGWIN__
extern "C" {
#endif // Cygwin
#include <wchar.h>
#ifdef __CYGWIN__
}
#endif // Cygwin
#elif defined(HAVE_WCSTR_H)
// old compilers have relevant declarations here
#include <wcstr.h>