summaryrefslogtreecommitdiff
path: root/src/intel_compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel_compiler.h')
-rw-r--r--src/intel_compiler.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/intel_compiler.h b/src/intel_compiler.h
new file mode 100644
index 0000000..e1c3bd2
--- /dev/null
+++ b/src/intel_compiler.h
@@ -0,0 +1,26 @@
+#ifndef _INTEL_COMPILER_H_
+#define _INTEL_COMPILER_H_
+
+/**
+ * Function inlining
+ */
+#if defined(__GNUC__)
+# define INLINE __inline__
+#elif (__STDC_VERSION__ >= 199901L) /* C99 */
+# define INLINE inline
+#else
+# 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_ */