X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b8f896a10a2cf252d0227eb855257d391ffa08d8..7a21e692d22ec16a5de7dbbb73761d4c4456edaa:/src/regex/regcustom.h diff --git a/src/regex/regcustom.h b/src/regex/regcustom.h index 4f2dc97cbf..8f51782d53 100644 --- a/src/regex/regcustom.h +++ b/src/regex/regcustom.h @@ -74,10 +74,15 @@ typedef long celt; /* type to hold chr, MCCE number, or * literal */ #define DIGITVAL(c) ((c)-'0') /* turn chr digit into its value */ -#define CHRBITS (SIZEOF_WCHAR_T << 3) /* bits in a chr; must not use sizeof */ -#define CHR_MAX ((1 << CHRBITS) - 1) -#define CHR_MIN 0x00000000 /* smallest and largest chr; the value */ - +#if wxUSE_WCHAR_T +# define CHRBITS (SIZEOF_WCHAR_T << 3) /* bits in a chr; must not use sizeof */ +# define CHR_MAX ((1 << CHRBITS) - 1) +# define CHR_MIN 0x00000000 /* smallest and largest chr; the value */ +#else /*ANSI*/ +# define CHRBITS 8 +# define CHR_MAX 0xFF +# define CHR_MIN 0x00 +#endif /*wxUSE_WCHAR_T*/ /* functions operating on chr */ #define iscalnum(x) wx_isalnum(x)