commit 6b6786598483bdc8f9c1f743bd154137a3820886
parent a840e5dae1978f7b9aa3ce7876dd46b158088ce2
Author: Tony Kelman <tony@kelman.net>
Date: Mon, 22 Sep 2014 13:51:05 -0700
add DLLEXPORT definition for __GNUC__ >= 4
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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