From 1169ba95f0ac8bf45e848508459436d7f21035c0 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sun, 17 Nov 2002 10:06:08 +0000 Subject: [PATCH] In some Cygwin versions (mine, for example...) wchar.h requires sys/types.h. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/wxchar.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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