mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
verblib: Try fixing a compilation error on macOS.
This commit is contained in:
@@ -248,13 +248,23 @@ extern "C" {
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define VERBLIB_INLINE __forceinline
|
#define VERBLIB_INLINE __forceinline
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
#if defined(__STRICT_ANSI__)
|
||||||
|
#define VERBLIB_GNUC_INLINE_HINT __inline__
|
||||||
|
#else
|
||||||
|
#define VERBLIB_GNUC_INLINE_HINT inline
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) || defined(__clang__)
|
||||||
|
#define VERBLIB_INLINE VERBLIB_GNUC_INLINE_HINT __attribute__((always_inline))
|
||||||
|
#else
|
||||||
|
#define VERBLIB_INLINE VERBLIB_GNUC_INLINE_HINT
|
||||||
|
#endif
|
||||||
|
#elif defined(__WATCOMC__)
|
||||||
|
#define VERBLIB_INLINE __inline
|
||||||
#else
|
#else
|
||||||
#ifdef __GNUC__
|
#define VERBLIB_INLINE
|
||||||
#define VERBLIB_INLINE inline __attribute__((always_inline))
|
|
||||||
#else
|
|
||||||
#define VERBLIB_INLINE inline
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define verblib_max(x, y) (((x) > (y)) ? (x) : (y))
|
#define verblib_max(x, y) (((x) > (y)) ? (x) : (y))
|
||||||
|
|||||||
Reference in New Issue
Block a user