]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump-stdinc.h
justify min()/max() macros declarations and usage
[tcpdump] / tcpdump-stdinc.h
index 77dccd5c8a114a7cad0a36e331aed69e8d0da2ed..d971341cd520e663df1d2f94eca91c4a6908270b 100644 (file)
@@ -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 */