mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
voclib: Fix a compilation error.
This commit is contained in:
@@ -152,12 +152,22 @@ extern "C" {
|
|||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define VOCLIB_INLINE __forceinline
|
#define VOCLIB_INLINE __forceinline
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#if defined(__STRICT_ANSI__)
|
||||||
|
#define VOCLIB_GNUC_INLINE_HINT __inline__
|
||||||
#else
|
#else
|
||||||
#ifdef __GNUC__
|
#define VOCLIB_GNUC_INLINE_HINT inline
|
||||||
#define VOCLIB_INLINE inline __attribute__((always_inline))
|
|
||||||
#else
|
|
||||||
#define VOCLIB_INLINE inline
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) || defined(__clang__)
|
||||||
|
#define VOCLIB_INLINE VOCLIB_GNUC_INLINE_HINT __attribute__((always_inline))
|
||||||
|
#else
|
||||||
|
#define VOCLIB_INLINE VOCLIB_GNUC_INLINE_HINT
|
||||||
|
#endif
|
||||||
|
#elif defined(__WATCOMC__)
|
||||||
|
#define VOCLIB_INLINE __inline
|
||||||
|
#else
|
||||||
|
#define VOCLIB_INLINE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Filters
|
/* Filters
|
||||||
|
|||||||
Reference in New Issue
Block a user