summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Base/API.h')
-rw-r--r--Swiften/Base/API.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swiften/Base/API.h b/Swiften/Base/API.h
index 8f19446..388ad0a 100644
--- a/Swiften/Base/API.h
+++ b/Swiften/Base/API.h
@@ -1,4 +1,4 @@
/*
- * Copyright (c) 2012 Remko Tronçon
+ * Copyright (c) 2012-2013 Remko Tronçon
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
@@ -18,4 +18,6 @@
# define SWIFTEN_API __declspec(dllimport)
# endif
+# elif __GNUC__ >= 4
+# define SWIFTEN_API __attribute__((visibility("default")))
# else
# define SWIFTEN_API