From 088d33b98b9a5674c4040b28c0c940dccc4f1772 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 4 Oct 2011 07:51:27 +0000 Subject: [PATCH] compile onelab only with fltk 1.3 --- Fltk/FlGui.cpp | 4 ++-- Fltk/onelabWindow.cpp | 2 +- Fltk/onelabWindow.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Fltk/FlGui.cpp b/Fltk/FlGui.cpp index 10df7cd6b8..d1769e0697 100644 --- a/Fltk/FlGui.cpp +++ b/Fltk/FlGui.cpp @@ -272,7 +272,7 @@ FlGui::FlGui(int argc, char **argv) geoContext = new geometryContextWindow(CTX::instance()->deltaFontSize); meshContext = new meshContextWindow(CTX::instance()->deltaFontSize); about = new aboutWindow(); -#if defined(HAVE_FL_TREE) +#if defined(FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 3) onelab = new onelabWindow(); #endif for(int i = 0; i < NB_SOLVER_MAX; i++) @@ -652,7 +652,7 @@ int FlGui::testGlobalShortcuts(int event) show = !show; status = 2; } -#if defined(HAVE_FL_TREE) +#if defined(FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 3) else if(Fl::test_shortcut('@')) { onelab_cb(0, (void*)"check"); status = 1; diff --git a/Fltk/onelabWindow.cpp b/Fltk/onelabWindow.cpp index b15c2d10ab..1e09bc6226 100644 --- a/Fltk/onelabWindow.cpp +++ b/Fltk/onelabWindow.cpp @@ -5,7 +5,7 @@ #include "onelab.h" -#if defined(HAVE_FL_TREE) +#if defined(FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 3) #include <FL/Fl_Value_Input.H> #include <FL/Fl_Box.H> #include "GmshMessage.h" diff --git a/Fltk/onelabWindow.h b/Fltk/onelabWindow.h index a0b94818c8..750a139a15 100644 --- a/Fltk/onelabWindow.h +++ b/Fltk/onelabWindow.h @@ -7,7 +7,7 @@ #define _ONELAB_WINDOW_H_ #include "GmshConfig.h" -#if defined(HAVE_FL_TREE) +#if defined(FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 3) #include <vector> #include <FL/Fl_Window.H> #include <FL/Fl_Tree.H> -- GitLab