summaryrefslogtreecommitdiffstats
path: root/contrib/libpcap/pcap-stdinc.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libpcap/pcap-stdinc.h')
-rw-r--r--contrib/libpcap/pcap-stdinc.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/libpcap/pcap-stdinc.h b/contrib/libpcap/pcap-stdinc.h
index 870e334..f025013 100644
--- a/contrib/libpcap/pcap-stdinc.h
+++ b/contrib/libpcap/pcap-stdinc.h
@@ -1,6 +1,6 @@
/*
- * Copyright (c) 2002 - 2003
- * NetGroup, Politecnico di Torino (Italy)
+ * Copyright (c) 2002 - 2005 NetGroup, Politecnico di Torino (Italy)
+ * Copyright (c) 2005 - 2009 CACE Technologies, Inc. Davis (California)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -30,6 +30,8 @@
*
* @(#) $Header: /tcpdump/master/libpcap/pcap-stdinc.h,v 1.10.2.1 2008-10-06 15:38:39 gianluca Exp $ (LBL)
*/
+#ifndef pcap_stdinc_h
+#define pcap_stdinc_h
#define SIZEOF_CHAR 1
#define SIZEOF_SHORT 2
@@ -60,9 +62,12 @@
#define caddr_t char*
+#if _MSC_VER < 1500
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#define strdup _strdup
+#endif
+
#define inline __inline
#ifdef __MINGW32__
@@ -88,3 +93,4 @@ typedef _W64 int intptr_t;
#endif
#endif /*__MINGW32__*/
+#endif /* pcap_stdinc_h */
OpenPOWER on IntegriCloud