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:
@@ -87,12 +87,17 @@
|
|||||||
/* Cygwin versions, wchar.h requires sys/types.h */
|
/* Cygwin versions, wchar.h requires sys/types.h */
|
||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
extern "C" {
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
#endif /* Cygwin */
|
#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)
|
#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