From ae5dcdf0e6255dfcf62e34ad49f973c4f0ab2add Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 4 Nov 2002 17:47:18 +0000 Subject: [PATCH] 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 --- include/wx/wxchar.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 5a1b12b0d1..5b083a6257 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -90,7 +90,16 @@ #if wxUSE_WCHAR_T #ifdef HAVE_WCHAR_H - #include + // 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 + #ifdef __CYGWIN__ + } + #endif // Cygwin #elif defined(HAVE_WCSTR_H) // old compilers have relevant declarations here #include