added __TDATE__ and __TTIME__ and use them instead of __DATE__ and __TIME__ for Unicode-friendliness
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -674,12 +674,22 @@ WXDLLEXPORT size_t wxStrftime(wxChar *s, size_t max, const wxChar *fmt, const
|
||||
// and _() in wxWindows sources
|
||||
#define wxT(x) _T(x)
|
||||
|
||||
// a Unicode-friendly __FILE__ analog
|
||||
// Unicode-friendly __FILE__, __DATE__ and __TIME__ analogs
|
||||
#ifndef __TFILE__
|
||||
#define __XFILE__(x) wxT(x)
|
||||
#define __TFILE__ __XFILE__(__FILE__)
|
||||
#endif
|
||||
|
||||
#ifndef __TDATE__
|
||||
#define __XDATE__(x) wxT(x)
|
||||
#define __TDATE__ __XDATE__(__DATE__)
|
||||
#endif
|
||||
|
||||
#ifndef __TTIME__
|
||||
#define __XTIME__(x) wxT(x)
|
||||
#define __TTIME__ __XTIME__(__TIME__)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
//_WX_WXCHAR_H_
|
||||
|
||||
|
Reference in New Issue
Block a user