diff options
author | Marc Laukien <marc@zeroc.com> | 2001-10-11 21:22:59 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-10-11 21:22:59 +0000 |
commit | 1a48a3674504885a89b3b25443ba719e80141ed4 (patch) | |
tree | b2f1e2ab006d8b300a1a3db4831dd372eab48fc6 /cpp/src/Slice/CPlusPlusUtil.cpp | |
parent | more fixes (diff) | |
download | ice-1a48a3674504885a89b3b25443ba719e80141ed4.tar.bz2 ice-1a48a3674504885a89b3b25443ba719e80141ed4.tar.xz ice-1a48a3674504885a89b3b25443ba719e80141ed4.zip |
slicified local exceptions
Diffstat (limited to 'cpp/src/Slice/CPlusPlusUtil.cpp')
-rw-r--r-- | cpp/src/Slice/CPlusPlusUtil.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp index bb337da2ddd..7395b54dc4a 100644 --- a/cpp/src/Slice/CPlusPlusUtil.cpp +++ b/cpp/src/Slice/CPlusPlusUtil.cpp @@ -89,13 +89,13 @@ Slice::printDllExportStuff(Output& out, const string& dllExport) { out << sp; out << "\n#ifdef WIN32"; - out << "\n# ifdef " << dllExport.substr(0, dllExport.size() - 1) << "_EXPORTS"; - out << "\n# define " << dllExport << "__declspec(dllexport)"; + out << "\n# ifdef " << dllExport << "_EXPORTS"; + out << "\n# define " << dllExport << " __declspec(dllexport)"; out << "\n# else"; - out << "\n# define " << dllExport << "__declspec(dllimport)"; + out << "\n# define " << dllExport << " __declspec(dllimport)"; out << "\n# endif"; out << "\n#else"; - out << "\n# define " << dllExport << "/**/"; + out << "\n# define " << dllExport << " /**/"; out << "\n#endif"; } } |