summaryrefslogtreecommitdiff
path: root/sapi/pi3web/pi3web_sapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/pi3web/pi3web_sapi.h')
-rw-r--r--sapi/pi3web/pi3web_sapi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sapi/pi3web/pi3web_sapi.h b/sapi/pi3web/pi3web_sapi.h
index 9300241d44..d229fec53f 100644
--- a/sapi/pi3web/pi3web_sapi.h
+++ b/sapi/pi3web/pi3web_sapi.h
@@ -9,8 +9,12 @@
# define MODULE_API __declspec(dllimport)
# endif
#else
+# if defined(__GNUC__) && __GNUC__ >= 4
+# define MODULE_API __attribute__ ((visibility("default")))
+# else
+# define MODULE_API
+# endif
# define far
-# define MODULE_API
typedef int BOOL;
typedef void far *LPVOID;