1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Declarations common to wx char/wchar_t usage (wide chars)
8 // Copyright: (c) wxWindows copyright
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "wxchar.h"
19 // only do SBCS or _UNICODE
21 // It may be OK anyway.
22 // # error "MBCS is not supported by wxChar"
25 // ----------------------------------------------------------------------------
26 // first deal with Unicode setting
27 // ----------------------------------------------------------------------------
29 // set wxUSE_UNICODE to 1 if UNICODE or _UNICODE is defined
30 #if defined(_UNICODE) || defined(UNICODE)
32 # define wxUSE_UNICODE 1
34 # ifndef wxUSE_UNICODE
35 # define wxUSE_UNICODE 0
39 // and vice versa: define UNICODE and _UNICODE if wxUSE_UNICODE is 1...
49 // Unicode support requires wchar_t
52 # define wxUSE_WCHAR_T 1
55 // ----------------------------------------------------------------------------
56 // define wxHAVE_TCHAR_FUNCTIONS for the compilers which support the
57 // wide-character functions
58 // ----------------------------------------------------------------------------
61 // VC++ and BC++ starting with 5.2 have TCHAR support
63 #define wxHAVE_TCHAR_FUNCTIONS
64 #elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x520)
65 #define wxHAVE_TCHAR_FUNCTIONS
66 #elif defined(__MINGW32__) && wxCHECK_W32API_VERSION( 1, 0 )
67 #define wxHAVE_TCHAR_FUNCTIONS
71 #elif defined(__CYGWIN__)
76 #elif defined(__VISAGECPP__) && (__IBMCPP__ >= 400)
77 // VisualAge 4.0+ supports TCHAR
78 #define wxHAVE_TCHAR_FUNCTIONS
80 // but not stdio.h nor time nor conversion functions
81 #define wxNO_TCHAR_STDIO
82 #define wxNO_TCHAR_STDLIB
83 #define wxNO_TCHAR_TIME
84 #define wxNO_TCHAR_LOCALE
86 // supplemental VA V4 defs so at least we know what these are
87 // just define to standard defs
93 // locale.h functons -- not defined in tchar.h
94 #define wxSetlocale setlocale
95 // some stdio functions are defined others are not
97 #define wxFgetchar fgetchar
99 #define wxFputchar fputchar
100 #define wxFreopen freopen
102 #define wxPerror perror
104 #define wxRemove remove
105 #define wxRename rename
106 #define wxTmpnam tmpnam
107 #define wxUngetc ungetc
108 #define wxVsscanf vsscanf
109 // stdlib not defined in VA V4
115 #define wxGetenv getenv
116 #define wxSystem system
117 // time.h functions -- none defined in tchar.h
118 #define wxAsctime asctime
119 #define wxCtime ctime
120 #elif defined(__MWERKS__)
125 #endif // compilers with (good) TCHAR support
127 #ifdef wxHAVE_TCHAR_FUNCTIONS
128 # define HAVE_WCSLEN 1
132 # if wxUSE_UNICODE // temporary - preserve binary compatibility
133 #if defined(__GNUWIN32__)
135 #define _TSCHAR TCHAR
136 #define _TUCHAR TCHAR
139 typedef _TCHAR wxChar
;
140 typedef _TSCHAR wxSChar
;
141 typedef _TUCHAR wxUChar
;
144 # define wxSChar signed char
145 # define wxUChar unsigned char
148 // wchar_t is available
149 #ifndef wxUSE_WCHAR_T
150 #define wxUSE_WCHAR_T 1
151 #endif // !defined(wxUSE_WCHAR_T)
154 #ifndef wxNO_TCHAR_CTYPE
158 # define wxIsalnum _istalnum
159 # define wxIsalpha _istalpha
160 # define wxIsctrl _istctrl
161 # define wxIsdigit _istdigit
162 # define wxIsgraph _istgraph
163 # define wxIslower _istlower
164 # define wxIsprint _istprint
165 # define wxIspunct _istpunct
166 # define wxIsspace _istspace
167 # define wxIsupper _istupper
168 # define wxIsxdigit _istxdigit
169 # define wxTolower _totlower
170 # define wxToupper _totupper
171 #endif // wxNO_TCHAR_CTYPE
174 #ifndef wxNO_TCHAR_LOCALE
175 # define wxSetlocale _tsetlocale
176 #endif // wxNO_TCHAR_LOCALE
178 // string.h functions
179 #ifndef wxNO_TCHAR_STRING
180 # define wxStrcat _tcscat
181 # define wxStrchr _tcschr
182 # define wxStrcmp _tcscmp
183 # define wxStrcoll _tcscoll
184 # define wxStrcpy _tcscpy
185 # define wxStrcspn _tcscspn
186 # define wxStrftime _tcsftime
187 # define wxStricmp _tcsicmp
188 # define wxStrnicmp _tcsnicmp
189 # define wxStrlen_ _tcslen // used in wxStrlen inline function
190 # define wxStrncat _tcsncat
191 # define wxStrncmp _tcsncmp
192 # define wxStrncpy _tcsncpy
193 # define wxStrpbrk _tcspbrk
194 # define wxStrrchr _tcsrchr
195 # define wxStrspn _tcsspn
196 # define wxStrstr _tcsstr
197 # define wxStrtod _tcstod
198 # define wxStrtol _tcstol
199 # define wxStrtoul _tcstoul
200 # define wxStrxfrm _tcsxfrm
201 #endif // wxNO_TCHAR_STRING
204 #ifndef wxNO_TCHAR_STDIO
205 # if wxUSE_UNICODE_MSLU
206 # define wxRemove wxMSLU__tremove
207 # define wxRename wxMSLU__trename
209 # define wxRemove _tremove
210 # define wxRename _trename
212 # define wxFgetc _fgettc
213 # define wxFgetchar _fgettchar
214 # define wxFgets _fgetts
215 # define wxFopen _tfopen
216 # define wxFputc _fputtc
217 # define wxFputchar _fputtchar
218 # define wxFprintf _ftprintf
219 # define wxFreopen _tfreopen
220 # define wxFscanf _ftscanf
221 # define wxGetc _gettc
222 # define wxGetchar _gettchar
223 # define wxGets _getts
224 # define wxPerror _tperror
225 # define wxPrintf _tprintf
226 # define wxPutc _puttc
227 # define wxPutchar _puttchar
228 # define wxPuts _putts
229 # define wxScanf _tscanf
230 # define wxSprintf _stprintf
231 # define wxSscanf _stscanf
232 # define wxTmpnam _ttmpnam
233 # define wxUngetc _tungetc
234 # define wxVfprint _vftprintf
235 # define wxVprintf _vtprintf
236 # define wxVsscanf _vstscanf
237 # define wxVsprintf _vstprintf
238 #elif defined(__VISAGECPP__) && (__IBMCPP__ >= 400)
239 // it has some stdio.h functions, apparently
240 # define wxFgetc _fgettc
241 # define wxFgets _fgetts
242 # define wxFputc _fputtc
243 # define wxFprintf _ftprintf
244 # define wxFscanf _ftscanf
245 # define wxGetc _gettc
246 # define wxGetchar _gettchar
247 # define wxPrintf _tprintf
248 # define wxPutc _puttc
249 # define wxPutchar _puttchar
250 # define wxScanf _tscanf
251 # define wxSprintf _stprintf
252 # define wxSscanf _stscanf
253 # define wxVfprint _vftprintf
254 # define wxVprintf _vtprintf
255 # define wxVsprintf _vstprintf
256 #endif // wxNO_TCHAR_STDIO
258 // stdlib.h functions
259 #ifndef wxNO_TCHAR_STDLIB
263 # define wxAtoi _ttoi
264 # define wxAtol _ttol
265 # define wxGetenv _tgetenv
266 # define wxSystem _tsystem
267 #endif // wxNO_TCHAR_STDLIB
270 #ifndef wxNO_TCHAR_TIME
271 # define wxAsctime _tasctime
272 # define wxCtime _tctime
273 #endif // wxNO_TCHAR_TIME
275 #else // !TCHAR-aware compilers
277 // check whether we should include wchar.h or equivalent
278 # if !defined(wxUSE_WCHAR_T)
279 # if defined(__VISUALC__) && (__VISUALC__ < 900)
280 # define wxUSE_WCHAR_T 0 // wchar_t is not available for MSVC++ 1.5
281 # elif defined(__UNIX__)
282 # if defined(HAVE_WCSTR_H) || defined(HAVE_WCHAR_H) || defined(__FreeBSD__) || defined(__DARWIN__)
283 # define wxUSE_WCHAR_T 1
285 # define wxUSE_WCHAR_T 0
287 # elif defined(__GNUWIN32__) && !defined(__MINGW32__) // Cygwin (not Mingw32) doesn't have wcslen.h, needed in buffer.h
288 # define wxUSE_WCHAR_T 0
289 # elif defined(__BORLANDC__) // WIN16 BC++
290 # define wxUSE_WCHAR_T 0
291 # elif defined(__WATCOMC__)
292 # define wxUSE_WCHAR_T 0
293 # elif defined(__VISAGECPP__) && (__IBMCPP__ < 400)
294 # define wxUSE_WCHAR_T 0
296 // add additional compiler checks if this fails
297 # define wxUSE_WCHAR_T 1
299 # endif // !defined(wxUSE_WCHAR_T)
305 # if defined(HAVE_WCHAR_H)
307 // include wchar.h to get wcslen() declaration used by wx/buffer.h
310 # elif defined(__FreeBSD__) || defined(__DARWIN__) || defined(__EMX__)
312 // include stdlib.h for wchar_t, wcslen is provided in wxchar.cpp
314 size_t WXDLLEXPORT
wcslen(const wchar_t *s
);
320 // check whether we are doing Unicode
325 // this is probably glibc-specific
326 # if defined(__WCHAR_TYPE__)
328 typedef __WCHAR_TYPE__ wxChar
;
329 typedef signed __WCHAR_TYPE__ wxSChar
;
330 typedef unsigned __WCHAR_TYPE__ wxUChar
;
334 // ctype.h functions (wctype.h)
335 # define wxIsalnum iswalnum
336 # define wxIsalpha iswalpha
337 # define wxIsctrl iswcntrl
338 # define wxIsdigit iswdigit
339 # define wxIsgraph iswgraph
340 # define wxIslower iswlower
341 # define wxIsprint iswprint
342 # define wxIspunct iswpunct
343 # define wxIsspace iswspace
344 # define wxIsupper iswupper
345 # define wxIsxdigit iswxdigit
347 # if defined(__GLIBC__) && (__GLIBC__ == 2) && (__GLIBC_MINOR__ == 0)
348 // /usr/include/wctype.h incorrectly declares translations tables which
349 // provokes tons of compile-time warnings - try to correct this
350 # define wxTolower(wc) towctrans((wc), (wctrans_t)__ctype_tolower)
351 # define wxToupper(wc) towctrans((wc), (wctrans_t)__ctype_toupper)
353 # define wxTolower towlower
354 # define wxToupper towupper
357 // string.h functions (wchar.h)
358 # define wxStrcat wcscat
359 # define wxStrchr wcschr
360 # define wxStrcmp wcscmp
361 # define wxStrcoll wcscoll
362 # define wxStrcpy wcscpy
363 # define wxStrcspn wcscspn
364 # define wxStrlen_ wcslen // used in wxStrlen inline function
365 # define wxStrncat wcsncat
366 # define wxStrncmp wcsncmp
367 # define wxStrncpy wcsncpy
368 # define wxStrpbrk wcspbrk
369 # define wxStrrchr wcsrchr
370 # define wxStrspn wcsspn
371 # define wxStrstr wcsstr
372 # define wxStrtod wcstod
373 # define wxStrtok wcstok
374 # define wxStrtol wcstol
375 # define wxStrtoul wcstoul
376 # define wxStrxfrm wcsxfrm
378 // glibc doesn't have wc equivalents of the other stuff
379 # define wxNEED_WX_STDIO_H
380 # define wxNEED_WX_STDLIB_H
381 # define wxNEED_WX_TIME_H
384 # error "Please define your compiler's Unicode conventions in wxChar.h"
391 # if 0 // temporary - preserve binary compatibilty
393 typedef signed char wxSChar
;
394 typedef unsigned char wxUChar
;
397 # define wxSChar signed char
398 # define wxUChar unsigned char
401 # if defined(__FreeBSD__) || defined(__DARWIN__)
405 # if !defined(__MINGW32__) || !defined(_T)
410 # define wxIsalnum isalnum
411 # define wxIsalpha isalpha
412 # define wxIsctrl isctrl
413 # define wxIsdigit isdigit
414 # define wxIsgraph isgraph
415 # define wxIslower islower
416 # define wxIsprint isprint
417 # define wxIspunct ispunct
418 # define wxIsspace isspace
419 # define wxIsupper isupper
420 # define wxIsxdigit isxdigit
421 # define wxTolower tolower
422 # define wxToupper toupper
425 # define wxSetlocale setlocale
427 // string.h functions
428 // #define wxStricmp strcasecmp
429 // wxStricmp is defined below!!
432 #define wxStrtok(str, sep, last) strtok_r(str, sep, last)
434 #define wxStrtok(str, sep, last) strtok(str, sep)
437 // leave the rest to defaults below
438 # define wxNEED_WX_STRING_H
439 # define wxNEED_WX_STDIO_H
440 # define wxNEED_WX_STDLIB_H
441 # define wxNEED_WX_TIME_H
444 #endif//TCHAR-aware compilers
446 // define wxStricmp for various compilers without Unicode possibilities
447 #if !defined(wxStricmp) && !wxUSE_UNICODE
448 # if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__SALFORDC__) || defined(__VISAGECPP__) || defined(__EMX__) || defined(__DJGPP__)
449 # define wxStricmp stricmp
450 # define wxStrnicmp strnicmp
451 # elif defined(__SC__) || defined(__VISUALC__) || (defined(__MWERKS__) && defined(__INTEL__))
452 # define wxStricmp _stricmp
453 # define wxStrnicmp _strnicmp
454 # elif defined(__UNIX__) || defined(__GNUWIN32__)
455 # define wxStricmp strcasecmp
456 # define wxStrnicmp strncasecmp
457 # elif defined(__MWERKS__) && !defined(__INTEL__)
458 // use wxWindows' implementation
460 // if you leave wxStricmp undefined, wxWindows' implementation will be used
461 # error "Please define string case-insensitive compare for your OS/compiler"
465 // if we need to define for standard headers, and we're not using Unicode,
466 // just define to standard C library routines
468 # ifdef wxNEED_WX_STRING_H
469 # define wxStrcat strcat
470 # define wxStrchr strchr
471 # define wxStrcmp strcmp
472 # define wxStrcoll strcoll
473 # define wxStrcpy strcpy
474 # define wxStrcspn strcspn
475 #if !defined(__MWERKS__) || !defined(__WXMAC__)
476 # define wxStrdup strdup
478 # define wxStrlen_ strlen // used in wxStrlen inline function
479 # define wxStrncat strncat
480 # define wxStrncmp strncmp
481 # define wxStrncpy strncpy
482 # define wxStrpbrk strpbrk
483 # define wxStrrchr strrchr
484 # define wxStrspn strspn
485 # define wxStrstr strstr
486 # define wxStrtod strtod
487 # define wxStrtol strtol
488 # define wxStrtoul strtoul
489 # define wxStrxfrm strxfrm
490 # undef wxNEED_WX_STRING_H
493 # ifdef wxNEED_WX_STDIO_H
494 # define wxFgetc fgetc
495 # define wxFgetchar fgetchar
496 # define wxFgets fgets
497 # define wxFopen fopen
498 # define wxFputc fputc
499 # define wxFputchar fputchar
500 # define wxFprintf fprintf
501 # define wxFreopen freopen
502 # define wxFscanf fscanf
504 # define wxGetchar getchar
506 # define wxPerror perror
507 # define wxPrintf printf
509 # define wxPutchar putchar
511 # define wxRemove remove
512 # define wxRename rename
513 # define wxScanf scanf
514 # define wxSprintf sprintf
515 # define wxSscanf sscanf
516 # define wxTmpnam tmpnam
517 # define wxUngetc ungetc
518 # define wxVfprint vfprintf
519 # define wxVprintf vprintf
520 # define wxVsscanf vsscanf
521 # define wxVsprintf vsprintf
522 # undef wxNEED_WX_STDIO_H
525 # ifdef wxNEED_WX_STDLIB_H
529 # define wxGetenv getenv
530 # define wxSystem system
531 # undef wxNEED_WX_STDLIB_H
534 # ifdef wxNEED_WX_TIME_H
535 # define wxAsctime asctime
536 # define wxCtime ctime
537 # define wxStrftime strftime
538 # undef wxNEED_WX_TIME_H
542 // checks whether the passed in pointer is NULL and if the string is empty
543 inline bool wxIsEmpty(const wxChar
*p
) { return !p
|| !*p
; }
545 #ifndef wxNEED_WX_STRING_H
546 // safe version of strlen() (returns 0 if passed NULL pointer)
547 inline size_t wxStrlen(const wxChar
*psz
)
548 { return psz
? wxStrlen_(psz
) : 0; }
552 // multibyte<->widechar conversion
553 WXDLLEXPORT
size_t wxMB2WC(wchar_t *buf
, const char *psz
, size_t n
);
554 WXDLLEXPORT
size_t wxWC2MB(char *buf
, const wchar_t *psz
, size_t n
);
556 # define wxMB2WX wxMB2WC
557 # define wxWX2MB wxWC2MB
558 # define wxWC2WX wxStrncpy
559 # define wxWX2WC wxStrncpy
561 # define wxMB2WX wxStrncpy
562 # define wxWX2MB wxStrncpy
563 # define wxWC2WX wxWC2MB
564 # define wxWX2WC wxMB2WC
567 // No wxUSE_WCHAR_T: we have to do something (JACS)
568 # define wxMB2WC wxStrncpy
569 # define wxWC2MB wxStrncpy
570 # define wxMB2WX wxStrncpy
571 # define wxWX2MB wxStrncpy
572 # define wxWC2WX wxWC2MB
573 # define wxWX2WC wxMB2WC
576 WXDLLEXPORT
bool wxOKlibc(); // for internal use
578 // if libc versions are not available, use replacements defined in wxchar.cpp
580 WXDLLEXPORT wxChar
* wxStrdup(const wxChar
*psz
);
584 WXDLLEXPORT
int wxStricmp(const wxChar
*psz1
, const wxChar
*psz2
);
588 WXDLLEXPORT
int wxStrnicmp(const wxChar
*psz1
, const wxChar
*psz2
, size_t len
);
592 WXDLLEXPORT wxChar
* wxStrtok(wxChar
*psz
, const wxChar
*delim
, wxChar
**save_ptr
);
597 WXDLLEXPORT wxWCharBuffer
wxSetlocale(int category
, const wxChar
*locale
);
600 #ifdef wxNEED_WX_CTYPE_H
601 WXDLLEXPORT
int wxIsalnum(wxChar ch
);
602 WXDLLEXPORT
int wxIsalpha(wxChar ch
);
603 WXDLLEXPORT
int wxIsctrl(wxChar ch
);
604 WXDLLEXPORT
int wxIsdigit(wxChar ch
);
605 WXDLLEXPORT
int wxIsgraph(wxChar ch
);
606 WXDLLEXPORT
int wxIslower(wxChar ch
);
607 WXDLLEXPORT
int wxIsprint(wxChar ch
);
608 WXDLLEXPORT
int wxIspunct(wxChar ch
);
609 WXDLLEXPORT
int wxIsspace(wxChar ch
);
610 WXDLLEXPORT
int wxIsupper(wxChar ch
);
611 WXDLLEXPORT
int wxIsxdigit(wxChar ch
);
612 WXDLLEXPORT
int wxTolower(wxChar ch
);
613 WXDLLEXPORT
int wxToupper(wxChar ch
);
616 #ifdef wxNEED_WX_STRING_H
617 WXDLLEXPORT wxChar
* wxStrcat(wxChar
*dest
, const wxChar
*src
);
618 WXDLLEXPORT wxChar
* wxStrchr(const wxChar
*s
, wxChar c
);
619 WXDLLEXPORT
int wxStrcmp(const wxChar
*s1
, const wxChar
*s2
);
620 WXDLLEXPORT
int wxStrcoll(const wxChar
*s1
, const wxChar
*s2
);
621 WXDLLEXPORT wxChar
* wxStrcpy(wxChar
*dest
, const wxChar
*src
);
622 WXDLLEXPORT
size_t wxStrcspn(const wxChar
*s
, const wxChar
*reject
);
623 WXDLLEXPORT
size_t wxStrlen(const wxChar
*s
);
624 WXDLLEXPORT wxChar
* wxStrncat(wxChar
*dest
, const wxChar
*src
, size_t n
);
625 WXDLLEXPORT
int wxStrncmp(const wxChar
*s1
, const wxChar
*s2
, size_t n
);
626 WXDLLEXPORT wxChar
* wxStrncpy(wxChar
*dest
, const wxChar
*src
, size_t n
);
627 WXDLLEXPORT wxChar
* wxStrpbrk(const wxChar
*s
, const wxChar
*accept
);
628 WXDLLEXPORT wxChar
* wxStrrchr(const wxChar
*s
, wxChar c
);
629 WXDLLEXPORT
size_t wxStrspn(const wxChar
*s
, const wxChar
*accept
);
630 WXDLLEXPORT wxChar
* wxStrstr(const wxChar
*haystack
, const wxChar
*needle
);
631 WXDLLEXPORT
double wxStrtod(const wxChar
*nptr
, wxChar
**endptr
);
632 WXDLLEXPORT
long int wxStrtol(const wxChar
*nptr
, wxChar
**endptr
, int base
);
633 WXDLLEXPORT
unsigned long int wxStrtoul(const wxChar
*nptr
, wxChar
**endptr
, int base
);
634 WXDLLEXPORT
size_t wxStrxfrm(wxChar
*dest
, const wxChar
*src
, size_t n
);
637 #ifdef wxNEED_WX_STDIO_H
640 WXDLLEXPORT
FILE * wxFopen(const wxChar
*path
, const wxChar
*mode
);
641 WXDLLEXPORT
FILE * wxFreopen(const wxChar
*path
, const wxChar
*mode
, FILE *stream
);
642 WXDLLEXPORT
int wxRemove(const wxChar
*path
);
643 WXDLLEXPORT
int wxRename(const wxChar
*oldpath
, const wxChar
*newpath
);
644 WXDLLEXPORT
int wxPrintf(const wxChar
*fmt
, ...);
645 WXDLLEXPORT
int wxVprintf(const wxChar
*fmt
, va_list argptr
);
646 WXDLLEXPORT
int wxFprintf(FILE *stream
, const wxChar
*fmt
, ...);
647 WXDLLEXPORT
int wxVfprintf(FILE *stream
, const wxChar
*fmt
, va_list argptr
);
648 WXDLLEXPORT
int wxSprintf(wxChar
*buf
, const wxChar
*fmt
, ...);
649 WXDLLEXPORT
int wxVsprintf(wxChar
*buf
, const wxChar
*fmt
, va_list argptr
);
650 WXDLLEXPORT
int wxSscanf(const wxChar
*buf
, const wxChar
*fmt
, ...);
651 WXDLLEXPORT
int wxVsscanf(const wxChar
*buf
, const wxChar
*fmt
, va_list argptr
);
655 WXDLLEXPORT
double wxAtof(const wxChar
*psz
);
658 #ifdef wxNEED_WX_STDLIB_H
659 WXDLLEXPORT
int wxAtoi(const wxChar
*psz
);
660 WXDLLEXPORT
long wxAtol(const wxChar
*psz
);
661 WXDLLEXPORT wxChar
* wxGetenv(const wxChar
*name
);
662 WXDLLEXPORT
int wxSystem(const wxChar
*psz
);
665 #ifdef wxNEED_WX_TIME_H
666 WXDLLEXPORT
size_t wxStrftime(wxChar
*s
, size_t max
, const wxChar
*fmt
, const struct tm
*tm
);
669 // under VC++ 6.0 isspace() returns 1 for 8 bit chars which completely breaks
670 // the file parsing - this may be true for 5.0 as well, update #ifdef then
671 #if defined(__VISUALC__) && (__VISUALC__ >= 1200) && !wxUSE_UNICODE
673 #define wxIsspace(c) ((((unsigned)c) < 128) && isspace(c))
676 // ----------------------------------------------------------------------------
677 // common macros which are always defined
678 // ----------------------------------------------------------------------------
680 // although global macros with such names are really bad, we want to have
681 // another name for _T() which should be used to avoid confusion between _T()
682 // and _() in wxWindows sources
685 // Unicode-friendly __FILE__, __DATE__ and __TIME__ analogs
687 #define __XFILE__(x) wxT(x)
688 #define __TFILE__ __XFILE__(__FILE__)
692 #define __XDATE__(x) wxT(x)
693 #define __TDATE__ __XDATE__(__DATE__)
697 #define __XTIME__(x) wxT(x)
698 #define __TTIME__ __XTIME__(__TIME__)