aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-01-13 18:41:09 +0100
committerSverker Eriksson <[email protected]>2016-01-13 18:41:09 +0100
commita00f5b7360b11991bee771638831e21cc4414b9b (patch)
treeaa52c1e8fbb500b63014243764022692d62ceee0 /lib
parent9c5c0a2169b1ac176fa9d66eab47c48ff8325a39 (diff)
parent1117dd3651be3cf763abf6fedcd4e06a6444fa04 (diff)
downloadotp-a00f5b7360b11991bee771638831e21cc4414b9b.tar.gz
otp-a00f5b7360b11991bee771638831e21cc4414b9b.tar.bz2
otp-a00f5b7360b11991bee771638831e21cc4414b9b.zip
Merge branch 'sverk/fvisibility-hidden/OTP-13227'
* sverk/fvisibility-hidden/OTP-13227: erts: Allow -fvisibility=hidden for NIFs and drivers erts: Cleanup erl_driver.h for windows erts: Refactor ERL_NIF_INIT macro
Diffstat (limited to 'lib')
-rw-r--r--lib/crypto/c_src/crypto_callback.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/crypto/c_src/crypto_callback.c b/lib/crypto/c_src/crypto_callback.c
index aab43232c9..af9545bd63 100644
--- a/lib/crypto/c_src/crypto_callback.c
+++ b/lib/crypto/c_src/crypto_callback.c
@@ -43,6 +43,10 @@
#ifdef __WIN32__
# define DLLEXPORT __declspec(dllexport)
+#elif defined(__GNUC__) && __GNUC__ >= 4
+# define DLLEXPORT __attribute__ ((visibility("default")))
+#elif defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550)
+# define DLLEXPORT __global
#else
# define DLLEXPORT
#endif