diff --git a/Contrib/ExDLL/plugin.h b/Contrib/ExDLL/plugin.h index b7759dc0..732322f0 100644 --- a/Contrib/ExDLL/plugin.h +++ b/Contrib/ExDLL/plugin.h @@ -1,6 +1,10 @@ #ifndef ___NSIS_PLUGIN__H___ #define ___NSIS_PLUGIN__H___ +#ifdef __cplusplus +extern "C" { +#endif + #include "api.h" #ifndef NSISCALL @@ -56,4 +60,8 @@ void NSISCALL pushstring(const char *str); char * NSISCALL getuservariable(const int varnum); void NSISCALL setuservariable(const int varnum, const char *var); +#ifdef __cplusplus +} +#endif + #endif//!___NSIS_PLUGIN__H___