Commit 1ffd553b authored by Lynn Garren's avatar Lynn Garren

supply M_PI if not defined

parent 32203d5a
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
......
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
==============================
......
......@@ -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;
......
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