allows compilation with gcc-3.3

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2010-02-10 23:11:19 +00:00
parent 96125e6e4a
commit 881c882629
1 changed files with 6 additions and 0 deletions

View File

@ -53,7 +53,13 @@ extern "C" {
#include <FL/x.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Tooltip.H>
#if __GNUC__ == 3 // because Fl_Image.H uses a private variable name id that's illegal under GCC 3
#define id id_
#endif
#include <FL/Fl_Sys_Menu_Bar.H>
#ifdef id
#undef id
#endif
#include <FL/Fl_Input_.H>
#include <stdio.h>
#include <stdlib.h>