Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
f2bb414f
Commit
f2bb414f
authored
Apr 13, 2020
by
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
libraries/lepton/src/MSVC_erfc.h
libraries/lepton/src/MSVC_erfc.h
+5
-1
No files found.
libraries/lepton/src/MSVC_erfc.h
View file @
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment