include: The visibility attribute is supported only by gcc >= 3.3.
This commit is contained in:
parent
abc0f385a3
commit
3f46314e33
|
@ -136,13 +136,13 @@
|
|||
# define DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#elif defined(__MINGW32__)
|
||||
# define DECLSPEC_EXPORT __attribute__((dllexport))
|
||||
#elif defined(__GNUC__) && (__GNUC__ > 2)
|
||||
#elif defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
|
||||
# define DECLSPEC_EXPORT __attribute__((visibility ("default")))
|
||||
#else
|
||||
# define DECLSPEC_EXPORT
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && (__GNUC__ > 2)
|
||||
#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
|
||||
# define DECLSPEC_HIDDEN __attribute__((visibility ("hidden")))
|
||||
#else
|
||||
# define DECLSPEC_HIDDEN
|
||||
|
|
Loading…
Reference in New Issue