Commit de71ffdc authored by David Reid's avatar David Reid

Fix a compilation error on VC6.

parent ca5e363d
_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, ...@@ -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__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment