changed the gnuc condition for __attribute__((visibility("xxx")))

This commit is contained in:
hyunghwan.chung 2018-02-01 13:08:16 +00:00
parent 5bf17bf205
commit 2a2505a32f

View File

@ -584,7 +584,7 @@ typedef struct moo_t moo_t;
# define MOO_IMPORT __declspec(dllimport)
# define MOO_EXPORT __declspec(dllexport)
# define MOO_PRIVATE
#elif defined(__GNUC__) && (__GNUC__>=4)
#elif defined(__GNUC__) && ((__GNUC__>= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
# define MOO_IMPORT __attribute__((visibility("default")))
# define MOO_EXPORT __attribute__((visibility("default")))
# define MOO_PRIVATE __attribute__((visibility("hidden")))