Bug 1119072, Part 5: Work around problem with cmath and M_PI on VS2015, r=ehsan

--HG--
extra : rebase_source : f4973d8a8d1c56a0b843d0258ca739cd4b12f780
This commit is contained in:
Brian Smith 2015-01-08 15:27:16 -08:00
parent bf1345cee7
commit 48fd2c4ff3

View File

@ -26,14 +26,14 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
// For M_PI from cmath
#ifdef _MSC_VER
# define _USE_MATH_DEFINES
#endif
// For M_PI
// VS2015 requires <math.h> to be used; <cmath> doesn't seem to honor
// _USE_MATH_DEFINES.
#define _USE_MATH_DEFINES
#include <math.h>
#include "Biquad.h"
#include <cmath>
#include <float.h>
#include <algorithm>