Skip to content

Commit

Permalink
Fixed the compiling error of wpcap.dll project for MSVC 2015.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Feb 18, 2016
1 parent 88409dc commit 5de174d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wpcap/libpcap/pcap-stdinc.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@

#define caddr_t char*

// These definitions should have no limitation for Visual Studio versions, otherwise Wireshark will crash.
/*#if _MSC_VER < 1500*/
// We must enable these macros for MSVC 2013, otherwise Wireshark will crash with the built wpcap.dll.
#if _MSC_VER < 1900
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#define strdup _strdup
/*#endif*/
#endif

#define inline __inline

Expand Down

0 comments on commit 5de174d

Please sign in to comment.