Revert "Move UNICODE section of wx/platform.h before wx/compiler.h inclusion."
Unfortunately this fix for MinGW broke compilation under Unix, see #15805. This reverts r75520. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b4acdde8f7
commit
ae31f96132
@ -176,38 +176,6 @@
|
||||
# include "wx/android/config_android.h"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
adjust the Unicode setting: wxUSE_UNICODE should be defined as 0 or 1
|
||||
and is used by wxWidgets, _UNICODE and/or UNICODE may be defined or used by
|
||||
the system headers so bring these settings in sync
|
||||
|
||||
Notice that this must be done before wx/compiler.h inclusion as some
|
||||
compiler-specific headers (_mingw.h) included from there depend on UNICODE
|
||||
being defined correctly.
|
||||
*/
|
||||
|
||||
/* set wxUSE_UNICODE to 1 if UNICODE or _UNICODE is defined */
|
||||
#if defined(_UNICODE) || defined(UNICODE)
|
||||
# undef wxUSE_UNICODE
|
||||
# define wxUSE_UNICODE 1
|
||||
#else /* !UNICODE */
|
||||
# ifndef wxUSE_UNICODE
|
||||
# define wxUSE_UNICODE 0
|
||||
# endif
|
||||
#endif /* UNICODE/!UNICODE */
|
||||
|
||||
/* and vice versa: define UNICODE and _UNICODE if wxUSE_UNICODE is 1 */
|
||||
#if wxUSE_UNICODE
|
||||
# ifndef _UNICODE
|
||||
# define _UNICODE
|
||||
# endif
|
||||
# ifndef UNICODE
|
||||
# define UNICODE
|
||||
# endif
|
||||
#endif /* wxUSE_UNICODE */
|
||||
|
||||
|
||||
#include "wx/compiler.h"
|
||||
|
||||
/*
|
||||
@ -258,6 +226,33 @@
|
||||
#endif /* alpha */
|
||||
|
||||
|
||||
/*
|
||||
adjust the Unicode setting: wxUSE_UNICODE should be defined as 0 or 1
|
||||
and is used by wxWidgets, _UNICODE and/or UNICODE may be defined or used by
|
||||
the system headers so bring these settings in sync
|
||||
*/
|
||||
|
||||
/* set wxUSE_UNICODE to 1 if UNICODE or _UNICODE is defined */
|
||||
#if defined(_UNICODE) || defined(UNICODE)
|
||||
# undef wxUSE_UNICODE
|
||||
# define wxUSE_UNICODE 1
|
||||
#else /* !UNICODE */
|
||||
# ifndef wxUSE_UNICODE
|
||||
# define wxUSE_UNICODE 0
|
||||
# endif
|
||||
#endif /* UNICODE/!UNICODE */
|
||||
|
||||
/* and vice versa: define UNICODE and _UNICODE if wxUSE_UNICODE is 1 */
|
||||
#if wxUSE_UNICODE
|
||||
# ifndef _UNICODE
|
||||
# define _UNICODE
|
||||
# endif
|
||||
# ifndef UNICODE
|
||||
# define UNICODE
|
||||
# endif
|
||||
#endif /* wxUSE_UNICODE */
|
||||
|
||||
|
||||
/*
|
||||
test for old versions of Borland C, normally need at least 5.82, Turbo
|
||||
explorer, available for free at http://www.turboexplorer.com/downloads
|
||||
|
Loading…
Reference in New Issue
Block a user