libebml: use the visibility attribute with GCC to export lib APIs
This commit is contained in:
@@ -78,14 +78,22 @@
|
|||||||
# define EBML_DLL_API __declspec(dllimport)
|
# define EBML_DLL_API __declspec(dllimport)
|
||||||
# endif // EBML_DLL_EXPORT
|
# endif // EBML_DLL_EXPORT
|
||||||
# else // EBML_DLL
|
# else // EBML_DLL
|
||||||
# define EBML_DLL_API
|
# if defined(__GNUC__) && __GNUC__ >= 4
|
||||||
|
# define EBML_DLL_API __attribute__((visibility("default")))
|
||||||
|
# else
|
||||||
|
# define EBML_DLL_API
|
||||||
|
# endif /* __GNUC__ */
|
||||||
# endif // EBML_DLL
|
# endif // EBML_DLL
|
||||||
|
|
||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
# pragma warning(disable:4786) // length of internal identifiers
|
# pragma warning(disable:4786) // length of internal identifiers
|
||||||
# endif // _MSC_VER
|
# endif // _MSC_VER
|
||||||
#else
|
#else
|
||||||
# define EBML_DLL_API
|
# if defined(__GNUC__) && __GNUC__ >= 4
|
||||||
|
# define EBML_DLL_API __attribute__((visibility("default")))
|
||||||
|
# else
|
||||||
|
# define EBML_DLL_API
|
||||||
|
# endif /* __GNUC__ */
|
||||||
#endif // WIN32 || _WIN32
|
#endif // WIN32 || _WIN32
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user