Commit f2bb414f authored by Giacomo Fiorin's avatar Giacomo Fiorin
Browse files

Lepton: define M_PI if needed with MingW (in addition to MSVC)

See https://github.com/lammps/lammps/pull/1992
parent e4a743ad
......@@ -8,9 +8,13 @@
* (VC11 has _MSC_VER=1700).
*/
#if defined(_MSC_VER)
#if defined(_MSC_VER) || defined(__MINGW32__)
#if !defined(M_PI)
#define M_PI 3.14159265358979323846264338327950288
#endif
#endif
#if defined(_MSC_VER)
#if _MSC_VER <= 1700 // 1700 is VC11, 1800 is VC12
/***************************
* 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