projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://www.archive.org/download/tucows_10294_XScreenSaver/xscreensaver-4.10.tar.gz
[xscreensaver]
/
hacks
/
speedmine.c
diff --git
a/hacks/speedmine.c
b/hacks/speedmine.c
index d7051c1ea12e558e77f2c56c85639f0cb34a1d6f..175e1a538c4d6a14c2d891395b3352386e0baf8f 100644
(file)
--- a/
hacks/speedmine.c
+++ b/
hacks/speedmine.c
@@
-116,6
+116,11
@@
static double step=0.0;
#define BACKWARDS -1
static int direction = FORWARDS;
#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;
static int pindex=0, nearest=0;
static int flipped_at=0;
static int xoffset=0, yoffset=0;