From 5c8629be05190a0f1e6fa6ac39994d1a00ec1bc3 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sat, 3 Jan 2009 10:01:41 +0000
Subject: [PATCH] fix msvc

---
 Common/Options.cpp    | 5 +++++
 Geo/GFaceCompound.cpp | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/Common/Options.cpp b/Common/Options.cpp
index c346ba06b7..96e44136e1 100644
--- a/Common/Options.cpp
+++ b/Common/Options.cpp
@@ -39,6 +39,11 @@
 #include "clippingWindow.h"
 #endif
 
+#if defined(WIN32)
+#undef min
+#undef max
+#endif
+
 // the single static option context
 Context_T CTX;
 
diff --git a/Geo/GFaceCompound.cpp b/Geo/GFaceCompound.cpp
index a5e77b017a..4d0737f215 100644
--- a/Geo/GFaceCompound.cpp
+++ b/Geo/GFaceCompound.cpp
@@ -359,6 +359,7 @@ double GFaceCompound::curvature(const SPoint2 &param) const
 //   }
 
 //  return curvature(lt->t);
+  return 0.;
 }
 
 double GFaceCompound::curvature(MTriangle *t) const
@@ -370,6 +371,7 @@ double GFaceCompound::curvature(MTriangle *t) const
 		   n1.y(),n2.y(),n3.y(),
 		   n1.z(),n2.z(),n3.z()};
   //  return fabs(t->interpolateDiv (val,0.,0.,0.));
+  return 0.;
 }
 
 GPoint GFaceCompound::point(double par1, double par2) const
-- 
GitLab