1 #ifndef LIBOPERA_INLINE_H_INCLUDED 2 #define LIBOPERA_INLINE_H_INCLUDED 3 4 #ifndef INLINE 5 6 #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) 7 #define INLINE inline 8 #elif defined(_WIN32) 9 #define INLINE __inline 10 #elif defined(__INTEL_COMPILER) 11 #define INLINE __inline 12 #elif defined(__GNUC__) 13 #define INLINE __inline__ 14 #else 15 #define INLINE 16 #endif 17 18 #endif /* INLINE */ 19 20 #ifndef FORCEINLINE 21 22 #ifdef _MSC_VER 23 #define FORCEINLINE __forceinline 24 #elif defined(__GNUC__) 25 #define FORCEINLINE __attribute__((always_inline)) INLINE 26 #else 27 #define FORCEINLINE INLINE 28 #endif 29 30 #endif /* FORCEINLINE */ 31 32 #endif /* LIBOPERA_INLINE_H_INCLUDED */ 33