]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump-stdinc.h
u_intN_t is dead, long live uintN_t.
[tcpdump] / tcpdump-stdinc.h
index 77dccd5c8a114a7cad0a36e331aed69e8d0da2ed..0a94bb59ccaab89005d537855c605e33e12a182f 100644 (file)
@@ -104,14 +104,9 @@ typedef char* caddr_t;
 #include <netdb.h>
 #if HAVE_INTTYPES_H
 #include <inttypes.h>
-#else
-#if HAVE_STDINT_H
+#elif HAVE_STDINT_H
 #include <stdint.h>
 #endif
-#endif
-#ifdef HAVE_SYS_BITYPES_H
-#include <sys/bitypes.h>
-#endif
 #include <sys/param.h>
 #include <sys/types.h>                 /* concession to AIX */
 #include <sys/time.h>
@@ -268,4 +263,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 */