summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorAlexey Sokolov <sokolov@truebsd.org>2008-01-22 07:43:43 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-22 07:57:33 -0700
commite58c365cda70fc31cc0f87873079fa2304310ab9 (patch)
treec7ae4049e5f7bcd824d0bc23f67bca23dd8832de /progs
parentd0774eae304a9e109f2bdbb361fe0c1ef0cf6691 (diff)
define M_PI if needed
Diffstat (limited to 'progs')
-rw-r--r--progs/demos/engine.c4
-rw-r--r--progs/xdemos/corender.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/progs/demos/engine.c b/progs/demos/engine.c
index 393cd95988..6040a2f103 100644
--- a/progs/demos/engine.c
+++ b/progs/demos/engine.c
@@ -16,6 +16,10 @@
#include "trackball.h"
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
#define DEG_TO_RAD(DEG) ((DEG) * M_PI / 180.0)
#define TEXTURE_FILE "../images/reflect.rgb"
diff --git a/progs/xdemos/corender.c b/progs/xdemos/corender.c
index 02e4ac0216..f2b8145e52 100644
--- a/progs/xdemos/corender.c
+++ b/progs/xdemos/corender.c
@@ -26,6 +26,10 @@
#include "ipc.h"
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+
static int MyID = 0; /* 0 or 1 */
static int WindowID = 0;
static GLXContext Context = 0;