Skip to content
Snippets Groups Projects
Commit 9943f17f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix for fltk 1.1

parent c569847c
No related branches found
No related tags found
No related merge requests found
// $Id: Plugin.cpp,v 1.22 2001-10-31 16:33:46 remacle Exp $ // $Id: Plugin.cpp,v 1.23 2002-03-26 22:11:33 geuzaine Exp $
#include <map> #include <map>
#ifndef _NODLL #ifndef _NODLL
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <map> #include <map>
#ifdef _FLTK #ifdef _FLTK
#include <FL/Fl.H>
#include <FL/filename.H> #include <FL/filename.H>
#endif #endif
...@@ -126,7 +127,11 @@ void GMSH_PluginManager::RegisterDefaultPlugins(){ ...@@ -126,7 +127,11 @@ void GMSH_PluginManager::RegisterDefaultPlugins(){
#ifdef _FLTK #ifdef _FLTK
char *homeplugins = getenv ("GMSHPLUGINSHOME"); char *homeplugins = getenv ("GMSHPLUGINSHOME");
if(!homeplugins)return; if(!homeplugins)return;
#if (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 1)
int nbFiles = fl_filename_list(homeplugins,&list);
#else
int nbFiles = filename_list(homeplugins,&list); int nbFiles = filename_list(homeplugins,&list);
#endif
if(nbFiles <= 0) return; if(nbFiles <= 0) return;
for(int i=0;i<nbFiles;i++){ for(int i=0;i<nbFiles;i++){
char *name = list[i]->d_name; char *name = list[i]->d_name;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment