X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fspeedmine.c;h=175e1a538c4d6a14c2d891395b3352386e0baf8f;hp=d7051c1ea12e558e77f2c56c85639f0cb34a1d6f;hb=6cee540bdbb571485cd5e519f89f389faebd0495;hpb=40eacb5812ef7c0e3374fb139afbb4f5bc8bbfb5 diff --git a/hacks/speedmine.c b/hacks/speedmine.c index d7051c1e..175e1a53 100644 --- a/hacks/speedmine.c +++ b/hacks/speedmine.c @@ -116,6 +116,11 @@ static double step=0.0; #define BACKWARDS -1 static int direction = FORWARDS; +/* Apparently AIX's math.h bogusly defines `nearest' as a function, + in violation of the ANSI C spec. */ +#undef nearest +#define nearest n3arest + static int pindex=0, nearest=0; static int flipped_at=0; static int xoffset=0, yoffset=0;