We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2de86a commit 85633a0Copy full SHA for 85633a0
1 file changed
include/osmium/util/compatibility.hpp
@@ -51,10 +51,16 @@ DEALINGS IN THE SOFTWARE.
51
# define OSMIUM_DEPRECATED
52
#endif
53
54
-#if defined(_MSC_VER)
55
-# define OSMIUM_EXPORT __declspec(dllexport)
+// Set OSMIUM_DEFINE_EXPORT before including any osmium headers to add
+// the special attributes to all exception classes.
56
+#ifdef OSMIUM_DEFINE_EXPORT
57
+# ifdef _MSC_VER
58
+# define OSMIUM_EXPORT __declspec(dllexport)
59
+# else
60
+# define OSMIUM_EXPORT __attribute__ ((visibility("default")))
61
+# endif
62
#else
-# define OSMIUM_EXPORT __attribute__ ((visibility("default")))
63
+# define OSMIUM_EXPORT
64
65
66
#endif // OSMIUM_UTIL_COMPATIBILITY_HPP
0 commit comments