include/share/compat.h: Only define inline for C
authorErik de Castro Lopo <erikd@mega-nerd.com>
Mon, 23 Jan 2017 19:20:03 +0000 (06:20 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Mon, 23 Jan 2017 19:20:06 +0000 (06:20 +1100)
Patch-from: lvqcl <lvqcl.mail@gmail.com>

include/share/compat.h

index 94edbd2..f74a5c1 100644 (file)
@@ -72,7 +72,7 @@
 #define strtoull _strtoui64
 #endif
 
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && !defined(__cplusplus)
 #define inline __inline
 #endif