mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 16:24:04 +02:00
Fix a compilation error with VC6 and VS2003.
These compilers do not support noinline.
This commit is contained in:
+7
-1
@@ -3914,7 +3914,13 @@ typedef ma_uint16 wchar_t;
|
|||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define MA_INLINE __forceinline
|
#define MA_INLINE __forceinline
|
||||||
#define MA_NO_INLINE __declspec(noinline)
|
|
||||||
|
/* noinline was introduced in Visual Studio 2005. */
|
||||||
|
#if _MSC_VER >= 1400
|
||||||
|
#define MA_NO_INLINE __declspec(noinline)
|
||||||
|
#else
|
||||||
|
#define MA_NO_INLINE
|
||||||
|
#endif
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
/*
|
/*
|
||||||
I've had a bug report where GCC is emitting warnings about functions possibly not being inlineable. This warning happens when
|
I've had a bug report where GCC is emitting warnings about functions possibly not being inlineable. This warning happens when
|
||||||
|
|||||||
Reference in New Issue
Block a user