diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2002-07-18 16:26:22 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2002-07-18 16:26:22 +0000 |
commit | 1e691ec48b76f9dd4f6abb07957e183ba990d2f6 (patch) | |
tree | bfc862f9de921ce69945a45376c05ca6c2949e6f /cpp/src/Yellow/Service.cpp | |
parent | fixed leak (diff) | |
download | ice-1e691ec48b76f9dd4f6abb07957e183ba990d2f6.tar.bz2 ice-1e691ec48b76f9dd4f6abb07957e183ba990d2f6.tar.xz ice-1e691ec48b76f9dd4f6abb07957e183ba990d2f6.zip |
Fix for execution on Windows
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; |