mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Fix a compilation error on VC6.
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
_private/
|
_private/
|
||||||
|
examples/build/vc6/
|
||||||
examples/build/vc15/
|
examples/build/vc15/
|
||||||
examples/build/bin/
|
examples/build/bin/
|
||||||
tests/_build/bin/
|
tests/_build/bin/
|
||||||
tests/_build/res/output/
|
tests/_build/res/output/
|
||||||
tests/_build/tcc/
|
tests/_build/tcc/
|
||||||
|
tests/_build/vc6/
|
||||||
tests/_build/vc15/
|
tests/_build/vc15/
|
||||||
tools/_build/
|
tools/_build/
|
||||||
*.vcxproj.user
|
*.vcxproj.user
|
||||||
|
|||||||
@@ -30,13 +30,18 @@ int ma_speex_resampler_get_expected_output_frame_count(SpeexResamplerState* st,
|
|||||||
|
|
||||||
#if defined(MINIAUDIO_SPEEX_RESAMPLER_IMPLEMENTATION)
|
#if defined(MINIAUDIO_SPEEX_RESAMPLER_IMPLEMENTATION)
|
||||||
/* The Speex resampler uses "inline", which is not defined for C89. We need to define it here. */
|
/* The Speex resampler uses "inline", which is not defined for C89. We need to define it here. */
|
||||||
#if defined(__GNUC__) && !defined(_MSC_VER)
|
#if !defined(__cplusplus)
|
||||||
#if defined(__STRICT_ANSI__)
|
#if defined(__GNUC__) && !defined(_MSC_VER)
|
||||||
#if !defined(inline)
|
#if defined(__STRICT_ANSI__)
|
||||||
#define inline __inline__ __attribute__((always_inline))
|
#if !defined(inline)
|
||||||
#define MA_SPEEX_INLINE_DEFINED
|
#define inline __inline__ __attribute__((always_inline))
|
||||||
|
#define MA_SPEEX_INLINE_DEFINED
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER <= 1200 /* 1200 = Visual Studio 6 */
|
||||||
|
#define inline _inline
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined(__clang__)
|
#if defined(_MSC_VER) && !defined(__clang__)
|
||||||
|
|||||||
Reference in New Issue
Block a user