}
+#if defined(_WIN32)
+#define GNUTOOLS_API __declspec(dllexport)
+#elif defined(__GNUC__)
+#define GNUTOOLS_API __attribute__((visibility("default")))
+#else
+#define GNUTOOLS_API
+#endif
+
extern "C"
-Plugin *create_plugin(Builder &builder)
+GNUTOOLS_API Plugin *create_plugin(Builder &builder)
{
return new GnuPlugin(builder);
}