Commit ae066d57 authored by David Reid's avatar David Reid

Fix compilation error with older versions of GCC.

parent 804585ae
...@@ -3797,9 +3797,15 @@ typedef ma_uint16 wchar_t; ...@@ -3797,9 +3797,15 @@ typedef ma_uint16 wchar_t;
I am using "__inline__" only when we're compiling in strict ANSI mode. I am using "__inline__" only when we're compiling in strict ANSI mode.
*/ */
#if defined(__STRICT_ANSI__) #if defined(__STRICT_ANSI__)
#define MA_INLINE __inline__ __attribute__((always_inline)) #define MA_GNUC_INLINE_HINT __inline__
#else #else
#define MA_INLINE inline __attribute__((always_inline)) #define MA_GNUC_INLINE_HINT inline
#endif
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) || defined(__clang__)
#define MA_INLINE MA_GNUC_INLINE_HINT __attribute__((always_inline))
#else
#define MA_INLINE MA_GNUC_INLINE_HINT
#endif #endif
#elif defined(__WATCOMC__) #elif defined(__WATCOMC__)
#define MA_INLINE __inline #define MA_INLINE __inline
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment