summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-05-16 01:32:57 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-05-16 01:32:57 +0000
commit7bfe8df08aa53f04031f0812d3bd4164581df559 (patch)
treeee095dd5b07ee41e5b3b92049ef6901389f24968 /src
parent5873faf39b59dc566e1eae8c9f6d24ed5d4c388b (diff)
define M_E if needed
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/imports.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index 2ae1116f41..a4afaf17d1 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -224,6 +224,11 @@ typedef union { GLfloat f; GLint i; } fi_type;
#define M_PI (3.1415926536)
#endif
+#ifndef M_E
+#define M_E (2.7182818284590452354)
+#endif
+
+
/* XXX this is a bit of a hack needed for compilation within XFree86 */
#ifndef FLT_MIN
#define FLT_MIN (1.0e-37)