X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=plugins%2Fmsvc%2Fmsvcplugin.cpp;h=bf1e26e3ba33990f560a6aa1ea7caa3f3f755785;hb=ccc68e3d1097f5e4f9fc17e84901986a77aa6cb2;hp=9ebf24a5f517809894bdfc81a09c038983fbc1c1;hpb=1dc209f3b40259a5ff2ebdc3081e533b9fbc7b52;p=builder.git diff --git a/plugins/msvc/msvcplugin.cpp b/plugins/msvc/msvcplugin.cpp index 9ebf24a..bf1e26e 100644 --- a/plugins/msvc/msvcplugin.cpp +++ b/plugins/msvc/msvcplugin.cpp @@ -23,8 +23,16 @@ void MsvcPlugin::create_targets(SourcePackage &spkg) const } +#if defined(_WIN32) +#define MSVCTOOLS_API __declspec(dllexport) +#elif defined(__GNUC__) +#define MSVCTOOLS_API __attribute__((visibility("default"))) +#else +#define MSVCTOOLS_API +#endif + extern "C" -Plugin *create_plugin(Builder &builder) +MSVCTOOLS_API Plugin *create_plugin(Builder &builder) { return new MsvcPlugin(builder); }