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