aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--puzzles.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/puzzles.h b/puzzles.h
index 8be9009..fbef531 100644
--- a/puzzles.h
+++ b/puzzles.h
@@ -22,8 +22,12 @@
#define STR(x) STR_INT(x)
/* NB not perfect because they evaluate arguments multiple times. */
+#ifndef max
#define max(x,y) ( (x)>(y) ? (x) : (y) )
+#endif /* max */
+#ifndef min
#define min(x,y) ( (x)<(y) ? (x) : (y) )
+#endif /* min */
enum {
LEFT_BUTTON = 0x0200,