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
This commit is contained in:
@@ -93,8 +93,10 @@
|
|||||||
#ifdef HAVE_WCHAR_H
|
#ifdef HAVE_WCHAR_H
|
||||||
// the current (as of Nov 2002) version of cygwin has a bug in its
|
// 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
|
// 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__
|
#ifdef __CYGWIN__
|
||||||
|
#include <sys/types.h>
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif // Cygwin
|
#endif // Cygwin
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
Reference in New Issue
Block a user