Verified Commit 894d1b1f authored by Ralph Giles's avatar Ralph Giles
Browse files

Fix tests on MSVC.



Copy the fallback M_PI define from lib/os.h to test/util.c so
the symbol is available under Microsoft's compiler, which doesn't
supply it by default.

(This can be changed by defining _USE_MATH_DEFINES before including math.h.)

The os.h fallback is used when compiling the main codec library,
but is not used in the external test harness, so compiling that
was failing with CMake under Windows.
Signed-off-by: evpobr's avatarevpobr <evpobr@gmail.com>
parent 4e1155cc
Pipeline #2459 passed with stage
in 1 minute and 41 seconds
......@@ -25,6 +25,10 @@
#include "util.h"
#ifndef M_PI
# define M_PI (3.1415926536f)
#endif
void
gen_windowed_sine (float *data, int len, float maximum)
{ int k ;
......
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