Explicitly set visibility of public API functions when gcc is used
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 10 Mar 2017 23:35:30 +0000 (23:35 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 10 Mar 2017 23:35:30 +0000 (23:35 +0000)
commit7aeecbff7178d72da1786ed30817fe8071c4d9ea
tree53d209287c8cd547b4f78162cd84b986ea95dcb3
parent93b3b08ef62567be3585a3cd6fc1147ed0ff7045
Explicitly set visibility of public API functions when gcc is used

Windows builds already limit exporting of functions to those marked
with LZ4LIB_API tag.  The same behaviour could be achieved on other
platforms when a relatively fresh gcc is used.

This change assigns public visibility to all symbols marked with
LZ4LIB_API tag.  When the library is built in -fvisibility=hidden
mode, only these marked symbols will be exported.
lib/lz4.h
lib/lz4frame.h