From 2a2505a32fc0030eb61f5dc206a3e44f7bc33bb3 Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Thu, 1 Feb 2018 13:08:16 +0000 Subject: [PATCH] changed the gnuc condition for __attribute__((visibility("xxx"))) --- moo/lib/moo-cmn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moo/lib/moo-cmn.h b/moo/lib/moo-cmn.h index a10013c..83b4354 100644 --- a/moo/lib/moo-cmn.h +++ b/moo/lib/moo-cmn.h @@ -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")))