diff --git a/Common/GmshUI.h b/Common/GmshUI.h index bfc76a0553a163bae7b5ab2aff4b06c5e9a98225..6eb64c8e2b6af957dcf0d3f11a05d5221fd5d51a 100644 --- a/Common/GmshUI.h +++ b/Common/GmshUI.h @@ -21,23 +21,26 @@ // Please report all bugs and problems to <gmsh@geuz.org>. #if defined(HAVE_FLTK) + # include <FL/Fl.H> + +// Gmsh requires FLTK 1.1.5 or above (the new dynamic menus don't +// work with older FLTK versions due to a bug in Fl_Scroll.clear()) +# if (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 1) +# if (FL_PATCH_VERSION < 5) +# error "Gmsh requires at least FLTK 1.1.5" +# endif +# else +# error "Gmsh requires FLTK branch 1.1" +# endif + # include <FL/gl.h> # if defined(__APPLE__) # include <OpenGL/glu.h> # else # include <GL/glu.h> # endif -#endif -// Gmsh requires FLTK 1.1.5 or above (the new dynamic menus don't -// work with older FLTK versions due to a bug in Fl_Scroll.clear()) -#if (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 1) -# if (FL_PATCH_VERSION < 5) -# error "Gmsh requires at least FLTK 1.1.5" -# endif -#else -# error "Gmsh requires FLTK branch 1.1" #endif #endif