From 1a5ca4e40787175bfcbf296c075f20215d858a35 Mon Sep 17 00:00:00 2001 From: Dutchman101 Date: Sat, 22 Jun 2024 02:58:26 +0200 Subject: [PATCH] Resolve build error C2065: 'M_PI': undeclared identifier` See https://github.com/xiph/speexdsp/issues/49 for details --- libspeexdsp/testresample2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libspeexdsp/testresample2.c b/libspeexdsp/testresample2.c index 99a830da..6524162d 100644 --- a/libspeexdsp/testresample2.c +++ b/libspeexdsp/testresample2.c @@ -30,13 +30,15 @@ POSSIBILITY OF SUCH DAMAGE. */ +#define _USE_MATH_DEFINES +#include + #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "speex/speex_resampler.h" #include -#include #include #define PERIOD 32