]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-stdinc.h
pcap_create_interface() needs the interface name on Linux.
[libpcap] / pcap-stdinc.h
index 65ee419358a6a5ed3ba2ee018f7f81f17090b24d..d72ba334c2c1732300c05dc049bb2d9b897beee4 100644 (file)
   /*
    * MSVC.
    */
+
+  #if _MSC_VER >= 1900
+    /*
+     * VS 2015 or newer; we have snprintf() function.
+     */
+    #define HAVE_SNPRINTF
+  #endif
+
   #if _MSC_VER >= 1800
     /*
      * VS 2013 or newer; we have <inttypes.h>.
   #endif
 #endif
 
-#define caddr_t char*
-
 #ifdef _MSC_VER
-  #define snprintf  _snprintf
-  #define vsnprintf _vsnprintf
   #define strdup    _strdup
 #endif