Browse Source

win-capture: Use inline define with VC only

mingw already supports the regular inline keyword in C; VC does not.
jp9000 10 years ago
parent
commit
372a23de68

+ 1 - 1
plugins/win-capture/funchook.h

@@ -6,7 +6,7 @@
 #ifdef __cplusplus
 extern "C" {
 #else
-#ifndef inline
+#if defined(_MSC_VER) && !defined(inline)
 #define inline __inline
 #endif
 #endif

+ 1 - 1
plugins/win-capture/get-graphics-offsets/get-graphics-offsets.h

@@ -9,7 +9,7 @@
 #ifdef __cplusplus
 extern "C" {
 #else
-#ifndef inline
+#if defined(_MSC_VER) && !defined(inline)
 #define inline __inline
 #endif
 #endif

+ 1 - 1
plugins/win-capture/graphics-hook/graphics-hook.h

@@ -11,7 +11,7 @@
 #ifdef __cplusplus
 extern "C" {
 #else
-#ifndef inline
+#if defined(_MSC_VER) && !defined(inline)
 #define inline __inline
 #endif
 #endif