From c72d21bbcf25996681809e8a79bd508beaba9855 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 2 Apr 2003 06:32:19 +0000
Subject: [PATCH] small fix so that gmsh still compiles with fltk 1.0

---
 Graphics/ReadImg.cpp | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/Graphics/ReadImg.cpp b/Graphics/ReadImg.cpp
index 0008ec10df..2b4ae5e814 100644
--- a/Graphics/ReadImg.cpp
+++ b/Graphics/ReadImg.cpp
@@ -1,4 +1,4 @@
-// $Id: ReadImg.cpp,v 1.4 2003-03-21 00:52:39 geuzaine Exp $
+// $Id: ReadImg.cpp,v 1.5 2003-04-02 06:32:19 geuzaine Exp $
 //
 // Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
 //
@@ -24,6 +24,14 @@
 #include "GmshUI.h"
 #include "Views.h"
   
+#if (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 0)
+
+void read_pnm(char *name) 
+{
+}
+
+#else
+
 #include <FL/Fl_PNM_Image.H>
   
 // from an image, we create a post pro object
@@ -109,3 +117,4 @@ void read_pnm(char *name)
   EndView(v, 1, name2, name);
 }
 
+#endif
-- 
GitLab