summaryrefslogtreecommitdiff
path: root/cpp/src/slice2objc/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2objc/Gen.cpp')
-rw-r--r--cpp/src/slice2objc/Gen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/slice2objc/Gen.cpp b/cpp/src/slice2objc/Gen.cpp
index a8c6b825ae5..36cd2c990c2 100644
--- a/cpp/src/slice2objc/Gen.cpp
+++ b/cpp/src/slice2objc/Gen.cpp
@@ -759,6 +759,8 @@ Slice::Gen::generate(const UnitPtr& p)
_H << nl << "#ifndef " << _dllExport;
_H << nl << "# ifdef " << _dllExport << "_EXPORTS";
_H << nl << "# define " << _dllExport << " ICE_DECLSPEC_EXPORT";
+ _H << nl << "# elif defined(ICE_STATIC_LIBS)";
+ _H << nl << "# define " << _dllExport << " /**/";
_H << nl << "# else";
_H << nl << "# define " << _dllExport << " ICE_DECLSPEC_IMPORT";
_H << nl << "# endif";