summaryrefslogtreecommitdiff
path: root/cpp/src/IceLocatorDiscovery/PluginI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceLocatorDiscovery/PluginI.cpp')
-rw-r--r--cpp/src/IceLocatorDiscovery/PluginI.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/cpp/src/IceLocatorDiscovery/PluginI.cpp b/cpp/src/IceLocatorDiscovery/PluginI.cpp
index 7e391460de5..fb79d4b8529 100644
--- a/cpp/src/IceLocatorDiscovery/PluginI.cpp
+++ b/cpp/src/IceLocatorDiscovery/PluginI.cpp
@@ -16,13 +16,21 @@
using namespace std;
using namespace IceLocatorDiscovery;
+#ifndef ICE_LOCATOR_DISCOVERY_API
+# ifdef ICE_LOCATOR_DISCOVERY_API_EXPORTS
+# define ICE_LOCATOR_DISCOVERY_API ICE_DECLSPEC_EXPORT
+# else
+# define ICE_LOCATOR_DISCOVERY_API /**/
+# endif
+#endif
+
//
// Plugin factory function.
//
extern "C"
{
-ICE_DECLSPEC_EXPORT Ice::Plugin*
+ICE_LOCATOR_DISCOVERY_API Ice::Plugin*
createIceLocatorDiscovery(const Ice::CommunicatorPtr& communicator, const string&, const Ice::StringSeq&)
{
return new PluginI(communicator);