summaryrefslogtreecommitdiff
path: root/intel_compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'intel_compiler.h')
-rw-r--r--intel_compiler.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/intel_compiler.h b/intel_compiler.h
index f1f24c8..e1c3bd2 100644
--- a/intel_compiler.h
+++ b/intel_compiler.h
@@ -12,4 +12,15 @@
# define INLINE
#endif
+/**
+ * Function visibility
+ */
+#if defined(__GNUC__)
+# define DLL_HIDDEN __attribute__((visibility("hidden")))
+# define DLL_EXPORT __attribute__((visibility("default")))
+#else
+# define DLL_HIDDEN
+# define DLL_EXPORT
+#endif
+
#endif /* _INTEL_COMPILER_H_ */