From 6b6786598483bdc8f9c1f743bd154137a3820886 Mon Sep 17 00:00:00 2001 From: Tony Kelman Date: Mon, 22 Sep 2014 13:51:05 -0700 Subject: [PATCH] add DLLEXPORT definition for __GNUC__ >= 4 --- mojibake.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mojibake.h b/mojibake.h index abebbeb..03069b6 100644 --- a/mojibake.h +++ b/mojibake.h @@ -81,6 +81,8 @@ enum {false, true}; # else # define DLLEXPORT __declspec(dllimport) # endif +#elif __GNUC__ >= 4 +# define DLLEXPORT __attribute__ ((visibility("default"))) #else # define DLLEXPORT #endif