Skip to content
  • Ralph Giles's avatar
    Fix tests on MSVC. · 894d1b1f
    Ralph Giles authored
    
    
    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: default avatarevpobr <evpobr@gmail.com>
    894d1b1f