X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/f53e36817312f87f7f41463b70fe320aeb21e02e..ed85e20e4d6a27d5405f37366dd34b64c10a9211:/tcpdump-stdinc.h diff --git a/tcpdump-stdinc.h b/tcpdump-stdinc.h index 91f3361b..0a94bb59 100644 --- a/tcpdump-stdinc.h +++ b/tcpdump-stdinc.h @@ -27,9 +27,6 @@ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * - * @(#) $Header: /tcpdump/master/tcpdump/tcpdump-stdinc.h,v 1.18 2007-11-24 18:13:33 mcr Exp $ (LBL) */ /* @@ -60,9 +57,6 @@ #endif #if !defined(__MINGW32__) && !defined(__WATCOMC__) -#undef toascii -#define isascii __isascii -#define toascii __toascii #define stat _stat #define open _open #define fstat _fstat @@ -93,10 +87,6 @@ extern int inet_aton (const char *cp, struct in_addr *addr); #define INET6_ADDRSTRLEN 46 #endif -#ifndef toascii -#define toascii(c) ((c) & 0x7f) -#endif - #ifndef caddr_t typedef char* caddr_t; #endif /* caddr_t */ @@ -114,14 +104,9 @@ typedef char* caddr_t; #include #if HAVE_INTTYPES_H #include -#else -#if HAVE_STDINT_H +#elif HAVE_STDINT_H #include #endif -#endif -#ifdef HAVE_SYS_BITYPES_H -#include -#endif #include #include /* concession to AIX */ #include @@ -189,7 +174,7 @@ typedef char* caddr_t; #define FOPEN_WRITE_BIN FOPEN_WRITE_TXT #endif -#if defined(__GNUC__) && defined(__i386__) && !defined(__APPLE__) && !defined(__ntohl) +#if defined(__GNUC__) && defined(__i386__) && !defined(__APPLE__) && !defined(__ntohl) #undef ntohl #undef ntohs #undef htonl @@ -278,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 */