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:
@@ -90,7 +90,16 @@
|
|||||||
|
|
||||||
#if wxUSE_WCHAR_T
|
#if wxUSE_WCHAR_T
|
||||||
#ifdef HAVE_WCHAR_H
|
#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
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
extern "C" {
|
||||||
|
#endif // Cygwin
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
}
|
||||||
|
#endif // Cygwin
|
||||||
#elif defined(HAVE_WCSTR_H)
|
#elif defined(HAVE_WCSTR_H)
|
||||||
// old compilers have relevant declarations here
|
// old compilers have relevant declarations here
|
||||||
#include <wcstr.h>
|
#include <wcstr.h>
|
||||||
|
Reference in New Issue
Block a user