]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-stdinc.h
Don't redefine inline in C++, for the benefit of C++ users of WinPcap.
[libpcap] / pcap-stdinc.h
index 484ed996d9676a5709b3fc64ed976047aa3720e2..dfc88b53a81fb655799e1ae48a88c52898b0c31a 100644 (file)
@@ -56,7 +56,9 @@
   #define strdup    _strdup
 #endif
 
-#define inline __inline
+#if !defined(__cplusplus)
+  #define inline __inline
+#endif
 
 #ifdef __MINGW32__
   #include <stdint.h>