X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04fdd8736a403bb3c6b2bd1430e48178dd8b7e45..d40f860378b778081f076e192817ab4e6a7d4e13:/src/regex/regex.h diff --git a/src/regex/regex.h b/src/regex/regex.h index b3e0e0a8ed..304e15d95e 100644 --- a/src/regex/regex.h +++ b/src/regex/regex.h @@ -1,5 +1,6 @@ #ifndef _REGEX_H_ #define _REGEX_H_ /* never again */ + /* * regular expressions * @@ -39,35 +40,26 @@ extern "C" { #endif -// FreeBSD, Watcom and DMars require this, CW doesn't have nor need it. -// Others also don't seem to need it. If you have an error related to -// (not) including please report details to -// wx-dev@lists.wxwindows.org -#if defined(__UNIX__) || defined(__WATCOMC__) || defined(__DIGITALMARS__) -# include -#endif +/***************************** + WXWINDOWS CUSTOM +*****************************/ +#ifndef _REGEX_CUSTOM_H_ +# define wx_wchar wxChar +/* FreeBSD, Watcom and DMars require this, CW doesn't have nor need it. */ +/* Others also don't seem to need it. If you have an error related to */ +/* (not) including please report details to */ +/* wx-dev@lists.wxwindows.org */ +# if defined(__UNIX__) || defined(__WATCOMC__) || defined(__DIGITALMARS__) +# include +# endif +#endif /* ndef _REGEX_CUSTOM_H_ */ +/***************************** + END WXWINDOWS CUSTOM +*****************************/ #include #include -#ifndef wxCHECK_GCC_VERSION -#define wxCHECK_GCC_VERSION( major, minor ) \ - ( defined(__GNUC__) && defined(__GNUC_MINOR__) \ - && ( ( __GNUC__ > (major) ) \ - || ( __GNUC__ == (major) && __GNUC_MINOR__ >= (minor) ) ) ) -#endif - -#if !wxUSE_UNICODE -# define wx_wchar char -#else // Unicode - #if (defined(__GNUC__) && !wxCHECK_GCC_VERSION(2, 96)) -# define wx_wchar __WCHAR_TYPE__ - #else // __WCHAR_TYPE__ and gcc < 2.96 - // standard case -# define wx_wchar wchar_t - #endif // __WCHAR_TYPE__ -#endif // ASCII/Unicode - /* * interface types etc. */