X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=src%2Fui%2Flwlib%2Flwlib.c;h=b23e76d1f14b4f2dd3747575ccf644858d598f63;hb=HEAD;hp=7748709246d599ad51071bb2d95bca1dd2d781aa;hpb=f922deb15970dbe7a23b7d0a4d313a56a6a7005d;p=sxemacs diff --git a/src/ui/lwlib/lwlib.c b/src/ui/lwlib/lwlib.c index 7748709..b23e76d 100644 --- a/src/ui/lwlib/lwlib.c +++ b/src/ui/lwlib/lwlib.c @@ -500,6 +500,12 @@ static Boolean safe_strcmp(const char *s1, const char *s2) return (s1 && s2) ? strcmp(s1, s2) : s1 ? False : !!s2; } + +/* We only expect to use the following max function */ +#ifdef max +#undef max +#endif + static change_type max(change_type i1, change_type i2) { return (int)i1 > (int)i2 ? i1 : i2;