Revision: 55167
          http://brlcad.svn.sourceforge.net/brlcad/?rev=55167&view=rev
Author:   starseeker
Date:     2013-04-16 21:54:37 +0000 (Tue, 16 Apr 2013)
Log Message:
-----------
MSVC didn't define __FLT_EPSILON__ - use FLT_EPSILON instead

Modified Paths:
--------------
    brlcad/trunk/src/other/poly2tri/poly2tri/common/shapes.h

Modified: brlcad/trunk/src/other/poly2tri/poly2tri/common/shapes.h
===================================================================
--- brlcad/trunk/src/other/poly2tri/poly2tri/common/shapes.h    2013-04-16 
19:17:11 UTC (rev 55166)
+++ brlcad/trunk/src/other/poly2tri/poly2tri/common/shapes.h    2013-04-16 
21:54:37 UTC (rev 55167)
@@ -48,9 +48,14 @@
 #include <vector>
 #include <cstddef>
 #include <assert.h>
+#include <cfloat>
 #include <cmath>
 
-#define EQ(v1, v2) ((v1 - v2 > -__FLT_EPSILON__) && (v1 - v2 < 
__FLT_EPSILON__))
+#if defined(__FLT_EPSILON__)
+#  define EQ(v1, v2) ((v1 - v2 > -__FLT_EPSILON__) && (v1 - v2 < 
__FLT_EPSILON__))
+#elif defined(FLT_EPSILON)
+#  define EQ(v1, v2) ((v1 - v2 > - FLT_EPSILON) && (v1 - v2 < FLT_EPSILON))
+#endif
 
 namespace p2t {
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to