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 # define wxFgetc _fgettc
206 # define wxFgetchar _fgettchar
207 # define wxFgets _fgetts
208 # define wxFopen _tfopen
209 # define wxFputc _fputtc
210 # define wxFputchar _fputtchar
211 # define wxFprintf _ftprintf
212 # define wxFreopen _tfreopen
213 # define wxFscanf _ftscanf
214 # define wxGetc _gettc
215 # define wxGetchar _gettchar
216 # define wxGets _getts
217 # define wxPerror _tperror
218 # define wxPrintf _tprintf
219 # define wxPutc _puttc
220 # define wxPutchar _puttchar
221 # define wxPuts _putts
222 # define wxRemove _tremove
223 # define wxRename _trename
224 # define wxScanf _tscanf
225 # define wxSprintf _stprintf
226 # define wxSscanf _stscanf
227 # define wxTmpnam _ttmpnam
228 # define wxUngetc _tungetc
229 # define wxVfprint _vftprintf
230 # define wxVprintf _vtprintf
231 # define wxVsscanf _vstscanf
232 # define wxVsprintf _vstprintf
233 #elif defined(__VISAGECPP__) && (__IBMCPP__ >= 400)
234 // it has some stdio.h functions, apparently
235 # define wxFgetc _fgettc
236 # define wxFgets _fgetts
237 # define wxFputc _fputtc
238 # define wxFprintf _ftprintf
239 # define wxFscanf _ftscanf
240 # define wxGetc _gettc
241 # define wxGetchar _gettchar
242 # define wxPrintf _tprintf
243 # define wxPutc _puttc
244 # define wxPutchar _puttchar
245 # define wxScanf _tscanf
246 # define wxSprintf _stprintf
247 # define wxSscanf _stscanf
248 # define wxVfprint _vftprintf
249 # define wxVprintf _vtprintf
250 # define wxVsprintf _vstprintf
251 #endif // wxNO_TCHAR_STDIO
253 // stdlib.h functions
254 #ifndef wxNO_TCHAR_STDLIB
258 # define wxAtoi _ttoi
259 # define wxAtol _ttol
260 # define wxGetenv _tgetenv
261 # define wxSystem _tsystem
262 #endif // wxNO_TCHAR_STDLIB
265 #ifndef wxNO_TCHAR_TIME
266 # define wxAsctime _tasctime
267 # define wxCtime _tctime
268 #endif // wxNO_TCHAR_TIME
270 #else // !TCHAR-aware compilers
272 // check whether we should include wchar.h or equivalent
273 # if !defined(wxUSE_WCHAR_T)
274 # if defined(__VISUALC__) && (__VISUALC__ < 900)
275 # define wxUSE_WCHAR_T 0 // wchar_t is not available for MSVC++ 1.5
276 # elif defined(__UNIX__)
277 # if defined(HAVE_WCSTR_H) || defined(HAVE_WCHAR_H) || defined(__FreeBSD__) || defined(__DARWIN__)
278 # define wxUSE_WCHAR_T 1
280 # define wxUSE_WCHAR_T 0
282 # elif defined(__GNUWIN32__) && !defined(__MINGW32__) // Cygwin (not Mingw32) doesn't have wcslen.h, needed in buffer.h
283 # define wxUSE_WCHAR_T 0
284 # elif defined(__BORLANDC__) // WIN16 BC++
285 # define wxUSE_WCHAR_T 0
286 # elif defined(__WATCOMC__)
287 # define wxUSE_WCHAR_T 0
288 # elif defined(__VISAGECPP__) && (__IBMCPP__ < 400)
289 # define wxUSE_WCHAR_T 0
291 // add additional compiler checks if this fails
292 # define wxUSE_WCHAR_T 1
294 # endif // !defined(wxUSE_WCHAR_T)
300 # if defined(HAVE_WCHAR_H)
302 // include wchar.h to get wcslen() declaration used by wx/buffer.h
305 # elif defined(__FreeBSD__) || defined(__DARWIN__) || defined(__EMX__)
307 // include stdlib.h for wchar_t, wcslen is provided in wxchar.cpp
309 size_t WXDLLEXPORT
wcslen(const wchar_t *s
);
315 // check whether we are doing Unicode
320 // this is probably glibc-specific
321 # if defined(__WCHAR_TYPE__)
323 typedef __WCHAR_TYPE__ wxChar
;
324 typedef signed __WCHAR_TYPE__ wxSChar
;
325 typedef unsigned __WCHAR_TYPE__ wxUChar
;
329 // ctype.h functions (wctype.h)
330 # define wxIsalnum iswalnum
331 # define wxIsalpha iswalpha
332 # define wxIsctrl iswcntrl
333 # define wxIsdigit iswdigit
334 # define wxIsgraph iswgraph
335 # define wxIslower iswlower
336 # define wxIsprint iswprint
337 # define wxIspunct iswpunct
338 # define wxIsspace iswspace
339 # define wxIsupper iswupper
340 # define wxIsxdigit iswxdigit
342 # if defined(__GLIBC__) && (__GLIBC__ == 2) && (__GLIBC_MINOR__ == 0)
343 // /usr/include/wctype.h incorrectly declares translations tables which
344 // provokes tons of compile-time warnings - try to correct this
345 # define wxTolower(wc) towctrans((wc), (wctrans_t)__ctype_tolower)
346 # define wxToupper(wc) towctrans((wc), (wctrans_t)__ctype_toupper)
348 # define wxTolower towlower
349 # define wxToupper towupper
352 // string.h functions (wchar.h)
353 # define wxStrcat wcscat
354 # define wxStrchr wcschr
355 # define wxStrcmp wcscmp
356 # define wxStrcoll wcscoll
357 # define wxStrcpy wcscpy
358 # define wxStrcspn wcscspn
359 # define wxStrlen_ wcslen // used in wxStrlen inline function
360 # define wxStrncat wcsncat
361 # define wxStrncmp wcsncmp
362 # define wxStrncpy wcsncpy
363 # define wxStrpbrk wcspbrk
364 # define wxStrrchr wcsrchr
365 # define wxStrspn wcsspn
366 # define wxStrstr wcsstr
367 # define wxStrtod wcstod
368 # define wxStrtok wcstok
369 # define wxStrtol wcstol
370 # define wxStrtoul wcstoul
371 # define wxStrxfrm wcsxfrm
373 // glibc doesn't have wc equivalents of the other stuff
374 # define wxNEED_WX_STDIO_H
375 # define wxNEED_WX_STDLIB_H
376 # define wxNEED_WX_TIME_H
379 # error "Please define your compiler's Unicode conventions in wxChar.h"
386 # if 0 // temporary - preserve binary compatibilty
388 typedef signed char wxSChar
;
389 typedef unsigned char wxUChar
;
392 # define wxSChar signed char
393 # define wxUChar unsigned char
396 # if defined(__FreeBSD__) || defined(__DARWIN__)
400 # if !defined(__MINGW32__) || !defined(_T)
405 # define wxIsalnum isalnum
406 # define wxIsalpha isalpha
407 # define wxIsctrl isctrl
408 # define wxIsdigit isdigit
409 # define wxIsgraph isgraph
410 # define wxIslower islower
411 # define wxIsprint isprint
412 # define wxIspunct ispunct
413 # define wxIsspace isspace
414 # define wxIsupper isupper
415 # define wxIsxdigit isxdigit
416 # define wxTolower tolower
417 # define wxToupper toupper
420 # define wxSetlocale setlocale
422 // string.h functions
423 // #define wxStricmp strcasecmp
424 // wxStricmp is defined below!!
427 #define wxStrtok(str, sep, last) strtok_r(str, sep, last)
429 #define wxStrtok(str, sep, last) strtok(str, sep)
432 // leave the rest to defaults below
433 # define wxNEED_WX_STRING_H
434 # define wxNEED_WX_STDIO_H
435 # define wxNEED_WX_STDLIB_H
436 # define wxNEED_WX_TIME_H
439 #endif//TCHAR-aware compilers
441 // define wxStricmp for various compilers without Unicode possibilities
442 #if !defined(wxStricmp) && !wxUSE_UNICODE
443 # if defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__SALFORDC__) || defined(__VISAGECPP__) || defined(__EMX__) || defined(__DJGPP__)
444 # define wxStricmp stricmp
445 # define wxStrnicmp strnicmp
446 # elif defined(__SC__) || defined(__VISUALC__) || (defined(__MWERKS__) && defined(__INTEL__))
447 # define wxStricmp _stricmp
448 # define wxStrnicmp _strnicmp
449 # elif defined(__UNIX__) || defined(__GNUWIN32__)
450 # define wxStricmp strcasecmp
451 # define wxStrnicmp strncasecmp
452 # elif defined(__MWERKS__) && !defined(__INTEL__)
453 // use wxWindows' implementation
455 // if you leave wxStricmp undefined, wxWindows' implementation will be used
456 # error "Please define string case-insensitive compare for your OS/compiler"
460 // if we need to define for standard headers, and we're not using Unicode,
461 // just define to standard C library routines
463 # ifdef wxNEED_WX_STRING_H
464 # define wxStrcat strcat
465 # define wxStrchr strchr
466 # define wxStrcmp strcmp
467 # define wxStrcoll strcoll
468 # define wxStrcpy strcpy
469 # define wxStrcspn strcspn
470 #if !defined(__MWERKS__) || !defined(__WXMAC__)
471 # define wxStrdup strdup
473 # define wxStrlen_ strlen // used in wxStrlen inline function
474 # define wxStrncat strncat
475 # define wxStrncmp strncmp
476 # define wxStrncpy strncpy
477 # define wxStrpbrk strpbrk
478 # define wxStrrchr strrchr
479 # define wxStrspn strspn
480 # define wxStrstr strstr
481 # define wxStrtod strtod
482 # define wxStrtol strtol
483 # define wxStrtoul strtoul
484 # define wxStrxfrm strxfrm
485 # undef wxNEED_WX_STRING_H
488 # ifdef wxNEED_WX_STDIO_H
489 # define wxFgetc fgetc
490 # define wxFgetchar fgetchar
491 # define wxFgets fgets
492 # define wxFopen fopen
493 # define wxFputc fputc
494 # define wxFputchar fputchar
495 # define wxFprintf fprintf
496 # define wxFreopen freopen
497 # define wxFscanf fscanf
499 # define wxGetchar getchar
501 # define wxPerror perror
502 # define wxPrintf printf
504 # define wxPutchar putchar
506 # define wxRemove remove
507 # define wxRename rename
508 # define wxScanf scanf
509 # define wxSprintf sprintf
510 # define wxSscanf sscanf
511 # define wxTmpnam tmpnam
512 # define wxUngetc ungetc
513 # define wxVfprint vfprintf
514 # define wxVprintf vprintf
515 # define wxVsscanf vsscanf
516 # define wxVsprintf vsprintf
517 # undef wxNEED_WX_STDIO_H
520 # ifdef wxNEED_WX_STDLIB_H
524 # define wxGetenv getenv
525 # define wxSystem system
526 # undef wxNEED_WX_STDLIB_H
529 # ifdef wxNEED_WX_TIME_H
530 # define wxAsctime asctime
531 # define wxCtime ctime
532 # define wxStrftime strftime
533 # undef wxNEED_WX_TIME_H
537 // checks whether the passed in pointer is NULL and if the string is empty
538 inline bool wxIsEmpty(const wxChar
*p
) { return !p
|| !*p
; }
540 #ifndef wxNEED_WX_STRING_H
541 // safe version of strlen() (returns 0 if passed NULL pointer)
542 inline size_t wxStrlen(const wxChar
*psz
)
543 { return psz
? wxStrlen_(psz
) : 0; }
547 // multibyte<->widechar conversion
548 WXDLLEXPORT
size_t wxMB2WC(wchar_t *buf
, const char *psz
, size_t n
);
549 WXDLLEXPORT
size_t wxWC2MB(char *buf
, const wchar_t *psz
, size_t n
);
551 # define wxMB2WX wxMB2WC
552 # define wxWX2MB wxWC2MB
553 # define wxWC2WX wxStrncpy
554 # define wxWX2WC wxStrncpy
556 # define wxMB2WX wxStrncpy
557 # define wxWX2MB wxStrncpy
558 # define wxWC2WX wxWC2MB
559 # define wxWX2WC wxMB2WC
562 // No wxUSE_WCHAR_T: we have to do something (JACS)
563 # define wxMB2WC wxStrncpy
564 # define wxWC2MB wxStrncpy
565 # define wxMB2WX wxStrncpy
566 # define wxWX2MB wxStrncpy
567 # define wxWC2WX wxWC2MB
568 # define wxWX2WC wxMB2WC
571 WXDLLEXPORT
bool wxOKlibc(); // for internal use
573 // if libc versions are not available, use replacements defined in wxchar.cpp
575 WXDLLEXPORT wxChar
* wxStrdup(const wxChar
*psz
);
579 WXDLLEXPORT
int wxStricmp(const wxChar
*psz1
, const wxChar
*psz2
);
583 WXDLLEXPORT
int wxStrnicmp(const wxChar
*psz1
, const wxChar
*psz2
, size_t len
);
587 WXDLLEXPORT wxChar
* wxStrtok(wxChar
*psz
, const wxChar
*delim
, wxChar
**save_ptr
);
592 WXDLLEXPORT wxWCharBuffer
wxSetlocale(int category
, const wxChar
*locale
);
595 #ifdef wxNEED_WX_CTYPE_H
596 WXDLLEXPORT
int wxIsalnum(wxChar ch
);
597 WXDLLEXPORT
int wxIsalpha(wxChar ch
);
598 WXDLLEXPORT
int wxIsctrl(wxChar ch
);
599 WXDLLEXPORT
int wxIsdigit(wxChar ch
);
600 WXDLLEXPORT
int wxIsgraph(wxChar ch
);
601 WXDLLEXPORT
int wxIslower(wxChar ch
);
602 WXDLLEXPORT
int wxIsprint(wxChar ch
);
603 WXDLLEXPORT
int wxIspunct(wxChar ch
);
604 WXDLLEXPORT
int wxIsspace(wxChar ch
);
605 WXDLLEXPORT
int wxIsupper(wxChar ch
);
606 WXDLLEXPORT
int wxIsxdigit(wxChar ch
);
607 WXDLLEXPORT
int wxTolower(wxChar ch
);
608 WXDLLEXPORT
int wxToupper(wxChar ch
);
611 #ifdef wxNEED_WX_STRING_H
612 WXDLLEXPORT wxChar
* wxStrcat(wxChar
*dest
, const wxChar
*src
);
613 WXDLLEXPORT wxChar
* wxStrchr(const wxChar
*s
, wxChar c
);
614 WXDLLEXPORT
int wxStrcmp(const wxChar
*s1
, const wxChar
*s2
);
615 WXDLLEXPORT
int wxStrcoll(const wxChar
*s1
, const wxChar
*s2
);
616 WXDLLEXPORT wxChar
* wxStrcpy(wxChar
*dest
, const wxChar
*src
);
617 WXDLLEXPORT
size_t wxStrcspn(const wxChar
*s
, const wxChar
*reject
);
618 WXDLLEXPORT
size_t wxStrlen(const wxChar
*s
);
619 WXDLLEXPORT wxChar
* wxStrncat(wxChar
*dest
, const wxChar
*src
, size_t n
);
620 WXDLLEXPORT
int wxStrncmp(const wxChar
*s1
, const wxChar
*s2
, size_t n
);
621 WXDLLEXPORT wxChar
* wxStrncpy(wxChar
*dest
, const wxChar
*src
, size_t n
);
622 WXDLLEXPORT wxChar
* wxStrpbrk(const wxChar
*s
, const wxChar
*accept
);
623 WXDLLEXPORT wxChar
* wxStrrchr(const wxChar
*s
, wxChar c
);
624 WXDLLEXPORT
size_t wxStrspn(const wxChar
*s
, const wxChar
*accept
);
625 WXDLLEXPORT wxChar
* wxStrstr(const wxChar
*haystack
, const wxChar
*needle
);
626 WXDLLEXPORT
double wxStrtod(const wxChar
*nptr
, wxChar
**endptr
);
627 WXDLLEXPORT
long int wxStrtol(const wxChar
*nptr
, wxChar
**endptr
, int base
);
628 WXDLLEXPORT
unsigned long int wxStrtoul(const wxChar
*nptr
, wxChar
**endptr
, int base
);
629 WXDLLEXPORT
size_t wxStrxfrm(wxChar
*dest
, const wxChar
*src
, size_t n
);
632 #ifdef wxNEED_WX_STDIO_H
635 WXDLLEXPORT
FILE * wxFopen(const wxChar
*path
, const wxChar
*mode
);
636 WXDLLEXPORT
FILE * wxFreopen(const wxChar
*path
, const wxChar
*mode
, FILE *stream
);
637 WXDLLEXPORT
int wxRemove(const wxChar
*path
);
638 WXDLLEXPORT
int wxRename(const wxChar
*oldpath
, const wxChar
*newpath
);
639 WXDLLEXPORT
int wxPrintf(const wxChar
*fmt
, ...);
640 WXDLLEXPORT
int wxVprintf(const wxChar
*fmt
, va_list argptr
);
641 WXDLLEXPORT
int wxFprintf(FILE *stream
, const wxChar
*fmt
, ...);
642 WXDLLEXPORT
int wxVfprintf(FILE *stream
, const wxChar
*fmt
, va_list argptr
);
643 WXDLLEXPORT
int wxSprintf(wxChar
*buf
, const wxChar
*fmt
, ...);
644 WXDLLEXPORT
int wxVsprintf(wxChar
*buf
, const wxChar
*fmt
, va_list argptr
);
645 WXDLLEXPORT
int wxSscanf(const wxChar
*buf
, const wxChar
*fmt
, ...);
646 WXDLLEXPORT
int wxVsscanf(const wxChar
*buf
, const wxChar
*fmt
, va_list argptr
);
650 WXDLLEXPORT
double wxAtof(const wxChar
*psz
);
653 #ifdef wxNEED_WX_STDLIB_H
654 WXDLLEXPORT
int wxAtoi(const wxChar
*psz
);
655 WXDLLEXPORT
long wxAtol(const wxChar
*psz
);
656 WXDLLEXPORT wxChar
* wxGetenv(const wxChar
*name
);
657 WXDLLEXPORT
int wxSystem(const wxChar
*psz
);
660 #ifdef wxNEED_WX_TIME_H
661 WXDLLEXPORT
size_t wxStrftime(wxChar
*s
, size_t max
, const wxChar
*fmt
, const struct tm
*tm
);
664 // under VC++ 6.0 isspace() returns 1 for 8 bit chars which completely breaks
665 // the file parsing - this may be true for 5.0 as well, update #ifdef then
666 #if defined(__VISUALC__) && (__VISUALC__ >= 1200) && !wxUSE_UNICODE
668 #define wxIsspace(c) ((((unsigned)c) < 128) && isspace(c))
671 // ----------------------------------------------------------------------------
672 // common macros which are always defined
673 // ----------------------------------------------------------------------------
675 // although global macros with such names are really bad, we want to have
676 // another name for _T() which should be used to avoid confusion between _T()
677 // and _() in wxWindows sources
680 // Unicode-friendly __FILE__, __DATE__ and __TIME__ analogs
682 #define __XFILE__(x) wxT(x)
683 #define __TFILE__ __XFILE__(__FILE__)
687 #define __XDATE__(x) wxT(x)
688 #define __TDATE__ __XDATE__(__DATE__)
692 #define __XTIME__(x) wxT(x)
693 #define __TTIME__ __XTIME__(__TIME__)