summaryrefslogtreecommitdiff
path: root/src/intel_compiler.h
blob: e1c3bd2a816399766276fccb91b09508b8181904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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_ */