From 372a23de68c93479e41c177b2518502027a1acfe Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 8 Feb 2015 16:39:24 -0800 Subject: [PATCH] win-capture: Use inline define with VC only mingw already supports the regular inline keyword in C; VC does not. --- plugins/win-capture/funchook.h | 2 +- plugins/win-capture/get-graphics-offsets/get-graphics-offsets.h | 2 +- plugins/win-capture/graphics-hook/graphics-hook.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/win-capture/funchook.h b/plugins/win-capture/funchook.h index 5944fb2aa..a63e8737a 100644 --- a/plugins/win-capture/funchook.h +++ b/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 diff --git a/plugins/win-capture/get-graphics-offsets/get-graphics-offsets.h b/plugins/win-capture/get-graphics-offsets/get-graphics-offsets.h index 319e5f76b..4859b09c0 100644 --- a/plugins/win-capture/get-graphics-offsets/get-graphics-offsets.h +++ b/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 diff --git a/plugins/win-capture/graphics-hook/graphics-hook.h b/plugins/win-capture/graphics-hook/graphics-hook.h index 2610d99fc..4e8b90b95 100644 --- a/plugins/win-capture/graphics-hook/graphics-hook.h +++ b/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