Update FFI_HIDDEN() to use .private_extern on Apple platforms and use the macro where appropriate

Fix issue #439

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
This commit is contained in:
Jeremy Huddleston Sequoia
2018-07-21 14:36:10 -07:00
committed by Jeremy Huddleston Sequoia
parent 65da63abc8
commit ba73a671cb
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -794,7 +794,7 @@ ENDF(C(ffi_closure_raw_THISCALL))
# define COMDAT(X) \
.section __TEXT,__text,coalesced,pure_instructions; \
.weak_definition X; \
.private_extern X
FFI_HIDDEN(X)
#elif defined __ELF__ && !(defined(__sun__) && defined(__svr4__))
# define COMDAT(X) \
.section .text.X,"axG",@progbits,X,comdat; \