summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--make.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/make.h b/make.h
index 94a9a62..18df6cd 100644
--- a/make.h
+++ b/make.h
@@ -280,3 +280,10 @@ extern unsigned int makelevel;
#define DEBUGPR(msg) \
do if (debug_flag) { print_spaces (depth); printf (msg, file->name); \
fflush (stdout); } while (0)
+
+#ifdef __GNUC__
+#define max(a, b) \
+ ({ register int __a = (a), __b = (b); __a > __b ? __a : __b; })
+#else
+#define max(a, b) ((a) > (b) ? (a) : (b))
+#endif