Re: [PATCH] Fix M_PI with -std=c++11 on Mingw

2015-11-03 Thread Dirk Hohndel
On Tue, Nov 03, 2015 at 01:47:28PM +0200, Lubomir I. Ivanov wrote: > From: "Lubomir I. Ivanov" > > The introduction of -std=c++11 breaks usage of M_PI in Mingw, > but technically M_PI is not standard C or C++. > > Defining M_PI in units.h solves the issue. This is one of those things that just

[PATCH] Fix M_PI with -std=c++11 on Mingw

2015-11-03 Thread Lubomir I. Ivanov
From: "Lubomir I. Ivanov" The introduction of -std=c++11 breaks usage of M_PI in Mingw, but technically M_PI is not standard C or C++. Defining M_PI in units.h solves the issue. Signed-off-by: Lubomir I. Ivanov --- the Mingw math.h header does have the _USE_MATH_DEFINES macro check and it's on