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 62cfaa5 commit 04496aeCopy full SHA for 04496ae
CHANGELOG.md
@@ -2,7 +2,7 @@
2
3
----
4
5
-- Scaffolding: Decorate public functions with `__declspec(dllexport)` under Windows
+- Scaffolding: Decorate public functions with `__declspec(dllexport)` under Windows and `__attribute__((visibility("default")))` on other platforms
6
7
#### v0.4.0+v0.25.0
8
bindgen/src/bindings/cpp/templates/cpp_scaffolding.cpp
@@ -9,7 +9,7 @@
9
#if defined(_WIN32) || defined(_WIN64)
10
#define UNIFFI_EXPORT __declspec(dllexport)
11
#else
12
-#define UNIFFI_EXPORT
+#define UNIFFI_EXPORT __attribute__((visibility("default")))
13
#endif
14
15
#include <stdio.h>
0 commit comments