fixed Cygwin compilation (can't use extern "C" in C compilation)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth 2005-02-14 14:53:28 +00:00
parent 7722d490f2
commit 724a248d8d

View File

@ -87,12 +87,17 @@
/* Cygwin versions, wchar.h requires sys/types.h */
#ifdef __CYGWIN__
#include <sys/types.h>
extern "C" {
#ifdef __cplusplus
extern "C" {
#endif
#endif /* Cygwin */
#include <wchar.h>
#ifdef __CYGWIN__
#include <wchar.h>
#if defined(__CYGWIN__) && defined(__cplusplus)
}
#endif /* Cygwin */
#endif /* Cygwin and C++ */
#elif defined(HAVE_WCSTR_H)
/* old compilers have relevant declarations here */
#include <wcstr.h>