diff options
| author | Manolo Gouy <Manolo> | 2010-02-10 23:11:19 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-02-10 23:11:19 +0000 |
| commit | 881c882629abd6c05266a18588176943c06a367c (patch) | |
| tree | ccc4b76e9654819f3141987a727b58d8b9879b98 /src | |
| parent | 96125e6e4a9755bae4422bce72801d1e27f82368 (diff) | |
allows compilation with gcc-3.3
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 2aa221eac..334720b3d 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -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> |
