mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-28 14:38:21 +01:00
fix shared object build with -fvisibility=hidden
set WEBP_EXTERN to visibility=default + explicitly mark VP8GetCPUInfo as it's referenced within the examples Change-Id: Ie3d2b15088e888f0b55203b205993eba75899d99
This commit is contained in:
parent
a4c3a31b8f
commit
d1c359ef29
@ -100,7 +100,7 @@ typedef enum {
|
|||||||
} CPUFeature;
|
} CPUFeature;
|
||||||
// returns true if the CPU supports the feature.
|
// returns true if the CPU supports the feature.
|
||||||
typedef int (*VP8CPUInfo)(CPUFeature feature);
|
typedef int (*VP8CPUInfo)(CPUFeature feature);
|
||||||
extern VP8CPUInfo VP8GetCPUInfo;
|
WEBP_EXTERN(VP8CPUInfo) VP8GetCPUInfo;
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Encoding
|
// Encoding
|
||||||
|
@ -38,7 +38,11 @@ typedef long long int int64_t;
|
|||||||
#ifndef WEBP_EXTERN
|
#ifndef WEBP_EXTERN
|
||||||
// This explicitly marks library functions and allows for changing the
|
// This explicitly marks library functions and allows for changing the
|
||||||
// signature for e.g., Windows DLL builds.
|
// signature for e.g., Windows DLL builds.
|
||||||
|
# if defined(__GNUC__) && __GNUC__ >= 4
|
||||||
|
# define WEBP_EXTERN(type) extern __attribute__ ((visibility ("default"))) type
|
||||||
|
# else
|
||||||
# define WEBP_EXTERN(type) extern type
|
# define WEBP_EXTERN(type) extern type
|
||||||
|
# endif /* __GNUC__ >= 4 */
|
||||||
#endif /* WEBP_EXTERN */
|
#endif /* WEBP_EXTERN */
|
||||||
|
|
||||||
// Macro to check ABI compatibility (same major revision number)
|
// Macro to check ABI compatibility (same major revision number)
|
||||||
|
Loading…
Reference in New Issue
Block a user