MSVS : Define _USE_MATH_DEFINES.

MSVS does defined the M_LN2 constant in <math.h> but only makes it
visible if _USE_MATH_DEFINES is defined.

Patch-from: lvqcl <lvqcl.mail@gmail.com>
This commit is contained in:
Erik de Castro Lopo
2013-09-07 19:13:43 +10:00
parent 2e165ec569
commit c532d34c11
4 changed files with 4 additions and 2 deletions

View File

@@ -52,7 +52,6 @@
#ifndef FLAC__INTEGER_ONLY_LIBRARY
#ifndef M_LN2
/* math.h in VC++ doesn't seem to have this (how Microsoft is that?) */
#define M_LN2 0.69314718055994530942
#endif