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__