From cd170dc5f642cfd6f1991d22dc899df20a13a60c Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 9 Jan 2009 07:45:08 +0000
Subject: [PATCH] fix msvc compile

---
 Plugin/CutPlane.cpp | 5 +++++
 Plugin/Probe.cpp    | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/Plugin/CutPlane.cpp b/Plugin/CutPlane.cpp
index ad68c3bbfc..ca0878fb72 100644
--- a/Plugin/CutPlane.cpp
+++ b/Plugin/CutPlane.cpp
@@ -12,6 +12,11 @@
 #include "Draw.h"
 #endif
 
+#if defined(WIN32)
+#undef min
+#undef max
+#endif
+
 extern Context_T CTX;
 
 int GMSH_CutPlanePlugin::iview = 0;
diff --git a/Plugin/Probe.cpp b/Plugin/Probe.cpp
index 51e69d30c0..0ccafc82a3 100644
--- a/Plugin/Probe.cpp
+++ b/Plugin/Probe.cpp
@@ -14,6 +14,11 @@
 #include "Draw.h"
 #endif
 
+#if defined(WIN32)
+#undef min
+#undef max
+#endif
+
 extern Context_T CTX;
 
 int GMSH_ProbePlugin::iview = 0;
-- 
GitLab