Unverified Commit e703f76f authored by peastman's avatar peastman Committed by GitHub
Browse files

Merge pull request #2642 from giacomofiorin/mingw-m-pi

Lepton: define M_PI if needed with MingW (in addition to MSVC)
parents e4a743ad f2bb414f
...@@ -8,9 +8,13 @@ ...@@ -8,9 +8,13 @@
* (VC11 has _MSC_VER=1700). * (VC11 has _MSC_VER=1700).
*/ */
#if defined(_MSC_VER) #if defined(_MSC_VER) || defined(__MINGW32__)
#if !defined(M_PI)
#define M_PI 3.14159265358979323846264338327950288 #define M_PI 3.14159265358979323846264338327950288
#endif
#endif
#if defined(_MSC_VER)
#if _MSC_VER <= 1700 // 1700 is VC11, 1800 is VC12 #if _MSC_VER <= 1700 // 1700 is VC11, 1800 is VC12
/*************************** /***************************
* erf.cpp * erf.cpp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment