Corrected compilation on linux - added conditional min macros.

This commit is contained in:
skarg
2008-10-29 03:49:43 +00:00
parent 2797764d65
commit 23d2cd6592
4 changed files with 24 additions and 2 deletions
+5
View File
@@ -52,6 +52,11 @@
#include "mstptext.h"
#include "crc.h"
#ifndef max
#define max(a,b) (((a) (b)) ? (a) : (b))
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
/* file format for libpcap/winpcap */
/* from http://wiki.wireshark.org/Development/LibpcapFileFormat */
typedef struct pcap_hdr_s {