Fix a compilation error on VC6.

This commit is contained in:
David Reid
2020-03-14 10:29:47 +10:00
parent ca5e363d88
commit de71ffdc05
2 changed files with 12 additions and 5 deletions
+2
View File
@@ -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)