summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-09-18 16:18:43 +0000
committerBrian Paul <[email protected]>2003-09-18 16:18:43 +0000
commit99823b37443044fd0d96e75d52c747f0c77d1730 (patch)
treebee7a4d704c921404c29f90bcd758eff2e235a40 /src/mesa/main/imports.h
parent0c415bca5c718468449535f075652ce86aa8461f (diff)
Remove FLT_MIN definition to imports.h
Assorted code clean-ups in light.c
Diffstat (limited to 'src/mesa/main/imports.h')
-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 df0d6d771de..93be82382cd 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -209,6 +209,11 @@ extern void _ext_mesa_free_pixelbuffer( void *pb );
#define M_PI (3.1415926536)
#endif
+/* XXX this is a bit of a hack needed for compilation within XFree86 */
+#ifndef FLT_MIN
+#define FLT_MIN (1.0e-37)
+#endif
+
/* Degrees to radians conversion: */
#define DEG2RAD (M_PI/180.0)