Add the ability to use only strong symbols, even on ELF targets

This commit is contained in:
Frank Denis 2017-09-15 18:52:04 +02:00
parent b0420b32d7
commit 9e0ff55ebd

View File

@ -32,7 +32,7 @@
# define SODIUM_EXPORT __attribute__ ((visibility ("default")))
# endif
# endif
# ifdef __ELF__
# if defined(__ELF__) && !defined(SODIUM_DISABLE_WEAK_FUNCTIONS)
# define SODIUM_EXPORT_WEAK SODIUM_EXPORT __attribute__((weak))
# else
# define SODIUM_EXPORT_WEAK SODIUM_EXPORT