Closed diizzyy closed 3 years ago
@evpobr
Can you add that define for MSVC to check it?
IIRC this is correct. lib/os.h
has a fallback definition of M_PI
which allows the main library to compile, but test/util.c
doesn't include it.
We could address the issue by
#define
to util.c
.os.h
in util.c
._USE_MATH_DEFINES
in from the build system.I'm not sure what the best approach is here. Happy to see a proposal.
I have no idea idea to fix it for MSVC and additionally no test box so unfortunately not.
I guess it is already done in #77 and still not merged.
Probably you need to make pull request to https://gitlab.xiph.org/xiph/vorbis.
We've addressed the M_PI
issue. Could you please rebase to confirm appveyor failure goes away?
Compiles fine now, thanks! :-)
@rillian Anything else you want me to do?
Nope. Merged upstream in 84c023699cdf023a32fa4ded32019f194afcdad0. Thanks for the patch!
If libm is available link it to test binaries which will otherwise fail to compile Tested on FreeBSD 13-STABLE
Signed-off-by: Daniel Engberg daniel.engberg.lists@pyret.net