diff options
Diffstat (limited to 'cpp/src/Yellow/Service.cpp')
-rw-r--r-- | cpp/src/Yellow/Service.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/src/Yellow/Service.cpp b/cpp/src/Yellow/Service.cpp index 223c2a2381c..93e5391c39c 100644 --- a/cpp/src/Yellow/Service.cpp +++ b/cpp/src/Yellow/Service.cpp @@ -13,6 +13,12 @@ #include <IceBox/IceBox.h> +#if defined(_WIN32) +# define YELLOW_SERVICE_API __declspec(dllexport) +#else +# define YELLOW_SERVICE_API /**/ +#endif + using namespace std; using namespace Ice; using namespace Yellow; @@ -21,7 +27,7 @@ using namespace Freeze; namespace Yellow { -class ServiceI : public ::IceBox::FreezeService +class YELLOW_SERVICE_API ServiceI : public ::IceBox::FreezeService { public: @@ -50,7 +56,7 @@ extern "C" // // Factory function // -::IceBox::FreezeService* +YELLOW_SERVICE_API ::IceBox::FreezeService* create(Ice::CommunicatorPtr communicator) { return new Yellow::ServiceI; |