[trunk] use hidden visibility for static library (fixes issue 354)
This commit is contained in:
parent
7a8cdc4bb0
commit
3ed5858902
@ -79,7 +79,11 @@ Most compilers implement their own version of this keyword ...
|
|||||||
#if defined(OPJ_STATIC) || !defined(_WIN32)
|
#if defined(OPJ_STATIC) || !defined(_WIN32)
|
||||||
/* http://gcc.gnu.org/wiki/Visibility */
|
/* http://gcc.gnu.org/wiki/Visibility */
|
||||||
# if __GNUC__ >= 4
|
# if __GNUC__ >= 4
|
||||||
|
# if defined(OPJ_STATIC) /* static library uses "hidden" */
|
||||||
|
# define OPJ_API __attribute__ ((visibility ("hidden")))
|
||||||
|
# else
|
||||||
# define OPJ_API __attribute__ ((visibility ("default")))
|
# define OPJ_API __attribute__ ((visibility ("default")))
|
||||||
|
# endif
|
||||||
# define OPJ_LOCAL __attribute__ ((visibility ("hidden")))
|
# define OPJ_LOCAL __attribute__ ((visibility ("hidden")))
|
||||||
# else
|
# else
|
||||||
# define OPJ_API
|
# define OPJ_API
|
||||||
|
Loading…
x
Reference in New Issue
Block a user