summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--nGenEx/Geometry.h2
-rw-r--r--nGenEx/Physical.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/nGenEx/Geometry.h b/nGenEx/Geometry.h
index 8ea86ad..f6b34cf 100644
--- a/nGenEx/Geometry.h
+++ b/nGenEx/Geometry.h
@@ -51,7 +51,9 @@ struct Point;
struct Quaternion;
struct Plane;
+#ifndef PI
const double PI = 3.14159265358979323846;
+#endif
const double DEGREES = (PI/180);
// +--------------------------------------------------------------------+
diff --git a/nGenEx/Physical.cpp b/nGenEx/Physical.cpp
index d58afbd..2bdb967 100644
--- a/nGenEx/Physical.cpp
+++ b/nGenEx/Physical.cpp
@@ -98,7 +98,7 @@ Physical::~Physical()
}
// +--------------------------------------------------------------------+
-
+#undef random
inline double random() { return rand()-16384; }
void