summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/CPlusPlusUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/CPlusPlusUtil.cpp')
-rw-r--r--cpp/src/Slice/CPlusPlusUtil.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp
index 1baee9853e6..2b3834ac072 100644
--- a/cpp/src/Slice/CPlusPlusUtil.cpp
+++ b/cpp/src/Slice/CPlusPlusUtil.cpp
@@ -101,14 +101,12 @@ Slice::printDllExportStuff(Output& out, const string& dllExport)
if(dllExport.size())
{
out << sp;
- out << "\n#ifdef _WIN32";
+ out << "\n#ifndef " << dllExport;
out << "\n# ifdef " << dllExport << "_EXPORTS";
- out << "\n# define " << dllExport << " __declspec(dllexport)";
+ out << "\n# define " << dllExport << " ICE_DECLSPEC_EXPORT";
out << "\n# else";
- out << "\n# define " << dllExport << " __declspec(dllimport)";
+ out << "\n# define " << dllExport << " ICE_DECLSPEC_IMPORT";
out << "\n# endif";
- out << "\n#else";
- out << "\n# define " << dllExport << " /**/";
out << "\n#endif";
}
}