Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
CLHEP
CLHEP
Commits
1ffd553b
Commit
1ffd553b
authored
Oct 31, 2013
by
Lynn Garren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
supply M_PI if not defined
parent
32203d5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
ChangeLog
ChangeLog
+7
-0
Units/ChangeLog
Units/ChangeLog
+5
-0
Units/test/testUnits.cc
Units/test/testUnits.cc
+6
-2
No files found.
ChangeLog
View file @
1ffd553b
2013-10-31 Lynn Garren <garren@fnal.gov>
* Units/test/testUnits.cc: use the same M_PI logic as found elsewhere
* clhep-config: fix for OSX
* cmake/Modules/ClhepBuildTex.cmake: don't try to install a file that has not been created
2013-09-26 Lynn Garren <garren@fnal.gov>
* Random: including RandGaussZiggurat and RandExpZiggurat
...
...
Units/ChangeLog
View file @
1ffd553b
2013-10-31 Lynn Garren <garren@fnal.gov>
* test/testUnits.cc: use the same M_PI logic as found elsewhere
==============================
14.11.12 Release CLHEP-2.1.3.1
==============================
...
...
Units/test/testUnits.cc
View file @
1ffd553b
...
...
@@ -15,6 +15,12 @@
#include <sstream>
#include <cmath>
#if (defined __STRICT_ANSI__) || (defined _WIN32)
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif // M_PI
#endif // __STRICT_ANSI__
int
main
()
{
int
nbad
=
0
;
...
...
@@ -42,9 +48,7 @@ int main() {
nbad
++
;
std
::
cout
<<
"compare --"
<<
os3
.
str
()
<<
"--"
<<
std
::
endl
;
std
::
cout
<<
" to --"
<<
os4
.
str
()
<<
"--"
<<
std
::
endl
;
#ifndef USING_VISUAL
std
::
cout
<<
"M_PI --"
<<
std
::
setprecision
(
16
)
<<
M_PI
<<
"--"
<<
std
::
endl
;
#endif
}
return
nbad
;
...
...
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