From 255fb406c4df1ff106a32296c9670af579067ed0 Mon Sep 17 00:00:00 2001 From: Christopher Dickson Date: Sat, 2 Sep 2017 12:32:48 -0400 Subject: [PATCH] playing nice with C --- ViGEmClient.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ViGEmClient.h b/ViGEmClient.h index 4eb3739..d88be23 100644 --- a/ViGEmClient.h +++ b/ViGEmClient.h @@ -26,6 +26,10 @@ SOFTWARE. #ifndef ViGEmClient_h__ #define ViGEmClient_h__ +#ifdef __cplusplus +extern "C" { +#endif + #include "ViGEmCommon.h" /** @@ -436,4 +440,8 @@ VIGEM_TARGET_TYPE vigem_target_get_type(PVIGEM_TARGET target); */ BOOL vigem_target_is_attached(PVIGEM_TARGET target); +#ifdef __cplusplus +} +#endif + #endif // ViGEmClient_h__