summaryrefslogtreecommitdiff
path: root/tcpdump-stdinc.h
diff options
context:
space:
mode:
Diffstat (limited to 'tcpdump-stdinc.h')
-rw-r--r--tcpdump-stdinc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tcpdump-stdinc.h b/tcpdump-stdinc.h
index 77dccd5c..d971341c 100644
--- a/tcpdump-stdinc.h
+++ b/tcpdump-stdinc.h
@@ -268,4 +268,11 @@ typedef char* caddr_t;
* end of Apple deprecation workaround macros
*/
+#ifndef min
+#define min(a,b) ((a)>(b)?(b):(a))
+#endif
+#ifndef max
+#define max(a,b) ((b)>(a)?(b):(a))
+#endif
+
#endif /* tcpdump_stdinc_h */