Skip to content

Commit 690f93c

Browse files
committed
Add default visibility attribute to non-windows platforms
Signed-off-by: Martynas Gurskas <[email protected]>
1 parent 62cfaa5 commit 690f93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindgen/src/bindings/cpp/templates/cpp_scaffolding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#if defined(_WIN32) || defined(_WIN64)
1010
#define UNIFFI_EXPORT __declspec(dllexport)
1111
#else
12-
#define UNIFFI_EXPORT
12+
#define UNIFFI_EXPORT __attribute__((visibility("default")))
1313
#endif
1414

1515
#include <stdio.h>

0 commit comments

Comments
 (0)