diff --git a/src/musikcore/musikcore_c.h b/src/musikcore/musikcore_c.h index f5b1a2d25..853bb9d33 100644 --- a/src/musikcore/musikcore_c.h +++ b/src/musikcore/musikcore_c.h @@ -40,14 +40,14 @@ #include #include -#ifndef mcsdk_export #ifdef WIN32 -#define mcsdk_export extern "C" __declspec(dllexport) + #ifdef EXPORT_SYMBOLS + #define mcsdk_export extern "C" __declspec(dllexport) + #else + #define mcsdk_export __declspec(dllimport) + #endif #else -#define mcsdk_export extern "C" -#endif -#else -#define mcsdk_export extern + #define mcsdk_export extern "C" #endif /*