|
From: <cn...@us...> - 2009-06-27 22:23:01
|
Revision: 380
http://hgengine.svn.sourceforge.net/hgengine/?rev=380&view=rev
Author: cnlohr
Date: 2009-06-27 22:23:00 +0000 (Sat, 27 Jun 2009)
Log Message:
-----------
Add Limits the the includes to get a Windows version of INFINITY
Modified Paths:
--------------
Mercury2/src/MercuryMath.h
Modified: Mercury2/src/MercuryMath.h
===================================================================
--- Mercury2/src/MercuryMath.h 2009-06-27 22:22:33 UTC (rev 379)
+++ Mercury2/src/MercuryMath.h 2009-06-27 22:23:00 UTC (rev 380)
@@ -10,6 +10,11 @@
typedef float FloatRow[4];
#endif
+#ifdef WIN32
+#include <limits>
+#define INFINITY (std::numeric_limits<float>::infinity())
+#endif
+
void ZeroFloatRow(FloatRow& r);
#define DEGRAD 0.01745329251994329576f //degree to radian
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|