merged 2.4 branch into the trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -81,8 +81,9 @@
|
||||
#include <stdarg.h>
|
||||
|
||||
// non Unix compilers which do have wchar.h (but not tchar.h which is included
|
||||
// below and which includes wchar.h anyhow)
|
||||
#if defined(__MWERKS__) || defined(__VISAGECPP__)
|
||||
// below and which includes wchar.h anyhow).
|
||||
// Actually MinGW has tchar.h, but it does not include wchar.h
|
||||
#if defined(__MWERKS__) || defined(__VISAGECPP__) || defined(__MINGW32__)
|
||||
#ifndef HAVE_WCHAR_H
|
||||
#define HAVE_WCHAR_H
|
||||
#endif
|
||||
@@ -90,7 +91,18 @@
|
||||
|
||||
#if wxUSE_WCHAR_T
|
||||
#ifdef HAVE_WCHAR_H
|
||||
#include <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; also, at least on some
|
||||
// Cygwin versions, wchar.h requires sys/types.h
|
||||
#ifdef __CYGWIN__
|
||||
#include <sys/types.h>
|
||||
extern "C" {
|
||||
#endif // Cygwin
|
||||
#include <wchar.h>
|
||||
#ifdef __CYGWIN__
|
||||
}
|
||||
#endif // Cygwin
|
||||
#elif defined(HAVE_WCSTR_H)
|
||||
// old compilers have relevant declarations here
|
||||
#include <wcstr.h>
|
||||
@@ -257,6 +269,7 @@
|
||||
#define wxStrcoll _tcscoll
|
||||
#define wxStrcpy _tcscpy
|
||||
#define wxStrcspn _tcscspn
|
||||
#define wxStrdup _tcsdup
|
||||
#define wxStrftime _tcsftime
|
||||
#define wxStricmp _tcsicmp
|
||||
#define wxStrnicmp _tcsnicmp
|
||||
|
Reference in New Issue
Block a user