diff options
Diffstat (limited to 'slv2')
-rw-r--r-- | slv2/slv2.h | 8 | ||||
-rw-r--r-- | slv2/ui.h | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/slv2/slv2.h b/slv2/slv2.h index c761873..8c198bd 100644 --- a/slv2/slv2.h +++ b/slv2/slv2.h @@ -19,15 +19,15 @@ #ifndef SLV2_SLV2_H__ #define SLV2_SLV2_H__ -#ifdef __cplusplus -extern "C" { -#endif - #include <stdint.h> #include <stdbool.h> #include "lv2/lv2plug.in/ns/lv2core/lv2.h" +#ifdef __cplusplus +extern "C" { +#endif + #if defined _WIN32 || defined __CYGWIN__ #define SLV2_LIB_IMPORT __declspec(dllimport) #define SLV2_LIB_EXPORT __declspec(dllexport) @@ -22,6 +22,10 @@ #include "slv2/slv2.h" #include "lv2/lv2plug.in/ns/extensions/ui/ui.h" +#ifdef __cplusplus +extern "C" { +#endif + /** @addtogroup slv2 * @{ */ @@ -164,4 +168,8 @@ slv2_ui_instance_get_handle(SLV2UIInstance instance); /** @} */ /** @} */ +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* SLV2_SLV2_UI_H__ */ |