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
e703f76f
Unverified
Commit
e703f76f
authored
Apr 13, 2020
by
peastman
Committed by
GitHub
Apr 13, 2020
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
Changes
1
Hide 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 @
e703f76f
...
...
@@ -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
...
...
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