From 3280f4c3c14ea7d2e4163feeac6fac6c9274b3d5 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 12 Feb 2003 00:52:39 +0000
Subject: [PATCH] Fix triangle dependency

---
 Plugin/Triangulate.cpp | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Plugin/Triangulate.cpp b/Plugin/Triangulate.cpp
index 80173dd8ca..49af6dac99 100644
--- a/Plugin/Triangulate.cpp
+++ b/Plugin/Triangulate.cpp
@@ -1,4 +1,4 @@
-// $Id: Triangulate.cpp,v 1.8 2003-01-23 20:19:26 geuzaine Exp $
+// $Id: Triangulate.cpp,v 1.9 2003-02-12 00:52:39 geuzaine Exp $
 //
 // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
 //
@@ -81,6 +81,13 @@ void GMSH_TriangulatePlugin::CatchErrorMessage (char *errorMessage) const
   strcpy(errorMessage,"Triangulate failed...");
 }
 
+#if !defined(HAVE_TRIANGLE)
+
+void Triangulate(Post_View *vin, Post_View *vout){
+  Msg(GERROR, "Triangle is not compiled in this version of Gmsh");
+}
+
+#else
 
 #define ANSI_DECLARATORS
 #define REAL double
@@ -183,6 +190,7 @@ void Triangulate(Post_View *vin, Post_View *vout){
 
 }
 
+#endif // !HAVE_TRIANGLE
 
 Post_View *GMSH_TriangulatePlugin::execute (Post_View *v)
 {
-- 
GitLab