Don't define inline if compiling C++ on Win32
[mech_eap.git] / libeap / src / utils / common.h
index 96ff59c..f2ec88b 100644 (file)
@@ -87,7 +87,9 @@ typedef int socklen_t;
 #endif /* CONFIG_NATIVE_WINDOWS */
 
 #ifdef _MSC_VER
+#ifndef __cplusplus
 #define inline __inline
+#endif
 
 #undef vsnprintf
 #define vsnprintf _vsnprintf