Commit 894d1b1
committed
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 <[email protected]>1 parent 4e1155c commit 894d1b1
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
0 commit comments