summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-06-15 22:41:21 +0000
committerRoland McGrath <roland@redhat.com>1992-06-15 22:41:21 +0000
commitfebf5d0944461c380ede5d3fb77846a3d86cab6e (patch)
treea567d29c8d5bd6fdd85a20fdb1d411b1a6b56ff9
parent9e37e514d2eafe3644e9ded15d297b6f53d89cd1 (diff)
downloadgunmake-febf5d0944461c380ede5d3fb77846a3d86cab6e.tar.gz
Formerly make.h.~45~
-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