summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorAlexey Sokolov <sokolov@truebsd.org>2008-01-22 07:42:40 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-22 07:42:40 -0700
commit30c65c3c62b4cbe3ba9a79db2b0ed8248072047d (patch)
tree9e18b29fc3ece6ae30bea48abf1c67755a29a6cd /progs
parent04fcc4cf1ef08121ef86596c6751abb16c8c564f (diff)
define M_PI if needed
Diffstat (limited to 'progs')
-rw-r--r--progs/demos/engine.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/demos/engine.c b/progs/demos/engine.c
index 143b02a8894..68c4d500dfa 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"