_T() restored for compatibility

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-10-06 18:12:57 +00:00
parent b540eb2bee
commit cdb5168095

View File

@ -48,8 +48,6 @@
# include <tchar.h> # include <tchar.h>
# define T(x) _T(x)
# if wxUSE_UNICODE // temporary - preserve binary compatibility # if wxUSE_UNICODE // temporary - preserve binary compatibility
typedef _TCHAR wxChar; typedef _TCHAR wxChar;
typedef _TSCHAR wxSChar; typedef _TSCHAR wxSChar;
@ -233,7 +231,7 @@ typedef __WCHAR_TYPE__ wxChar;
typedef signed __WCHAR_TYPE__ wxSChar; typedef signed __WCHAR_TYPE__ wxSChar;
typedef unsigned __WCHAR_TYPE__ wxUChar; typedef unsigned __WCHAR_TYPE__ wxUChar;
# define T(x) L##x # define _T(x) L##x
// ctype.h functions (wctype.h) // ctype.h functions (wctype.h)
# define wxIsalnum iswalnum # define wxIsalnum iswalnum
@ -303,9 +301,9 @@ typedef unsigned __WCHAR_TYPE__ wxUChar;
# endif # endif
# ifdef __FreeBSD__ # ifdef __FreeBSD__
# undef T # undef _T
# endif # endif
# define T(x) x # define _T(x) x
// ctype.h functions // ctype.h functions
# define wxIsalnum isalnum # define wxIsalnum isalnum
@ -564,6 +562,11 @@ WXDLLEXPORT int wxSystem(const wxChar *psz);
WXDLLEXPORT size_t wxStrftime(wxChar *s, size_t max, const wxChar *fmt, const struct tm *tm); WXDLLEXPORT size_t wxStrftime(wxChar *s, size_t max, const wxChar *fmt, const struct tm *tm);
#endif #endif
// although global macros with such names are really bad, we want to have
// another name for _T() which should be used to avoid confusion between _T()
// and _() in wxWindows sources
#define T(x) _T(x)
// a Unicode-friendly __FILE__ analog // a Unicode-friendly __FILE__ analog
#ifndef __TFILE__ #ifndef __TFILE__
#define __XFILE__(x) T(x) #define __XFILE__(x) T(x)