Module Name:    xsrc
Committed By:   christos
Date:           Fri Dec 19 19:07:46 UTC 2014

Modified Files:
        xsrc/external/mit/glu/dist/include/GL: glu.h

Log Message:
use DBL_MAX instead of 1.0e150...


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 xsrc/external/mit/glu/dist/include/GL/glu.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/glu/dist/include/GL/glu.h
diff -u xsrc/external/mit/glu/dist/include/GL/glu.h:1.1.1.1 xsrc/external/mit/glu/dist/include/GL/glu.h:1.2
--- xsrc/external/mit/glu/dist/include/GL/glu.h:1.1.1.1	Tue Dec 16 01:01:15 2014
+++ xsrc/external/mit/glu/dist/include/GL/glu.h	Fri Dec 19 14:07:46 2014
@@ -281,7 +281,13 @@ typedef GLUquadric GLUquadricObj;
 typedef GLUtesselator GLUtesselatorObj;
 typedef GLUtesselator GLUtriangulatorObj;
 
+/* GLdouble is double in gl.h so we are DBL_MAX */
+#include <limits.h>	/* Not a good place to do that, but... */
+#ifndef DBL_MAX
 #define GLU_TESS_MAX_COORD 1.0e150
+#else
+#define GLU_TESS_MAX_COORD DBL_MAX
+#endif
 
 /* Internal convenience typedefs */
 typedef void (GLAPIENTRYP _GLUfuncptr)(void);

Reply via email to