X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ca4086b22723db16d7e0fc23aa9021b4785096a..dd71bfb9921430755a885117cc6c9843c62dafda:/src/regex/rege_dfa.c?ds=sidebyside diff --git a/src/regex/rege_dfa.c b/src/regex/rege_dfa.c index 313892cc8f..deac9125ae 100644 --- a/src/regex/rege_dfa.c +++ b/src/regex/rege_dfa.c @@ -257,6 +257,12 @@ struct dfa *d; ^ static struct dfa *newdfa(struct vars *, struct cnfa *, ^ struct colormap *, struct smalldfa *); */ + +/* FIXME Required for CW 8 on Mac since it's not in limits.h */ +#ifndef __CHAR_BIT__ +#define __CHAR_BIT__ 8 +#endif + static struct dfa * newdfa(v, cnfa, cm, small) struct vars *v; @@ -563,7 +569,7 @@ chr *start; struct arcp ap; struct arcp lastap; color co; - + lastap.ss = NULL; lastap.co = 0; // WX: suppress dummy gcc warnings ss = pickss(v, d, cp, start); assert(!(ss->flags&LOCKED));