diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index fe9ddce627..71e38836d6 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -93,8 +93,10 @@ #ifdef HAVE_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 + // this results in linking errors later; also, at least on some + // Cygwin versions, wchar.h requires sys/types.h #ifdef __CYGWIN__ + #include extern "C" { #endif // Cygwin #include