From 881c882629abd6c05266a18588176943c06a367c Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 10 Feb 2010 23:11:19 +0000 Subject: [PATCH] allows compilation with gcc-3.3 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 6 ++++++ 1 file changed, 6 insertions(+) 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 #include #include +#if __GNUC__ == 3 // because Fl_Image.H uses a private variable name id that's illegal under GCC 3 +#define id id_ +#endif #include +#ifdef id +#undef id +#endif #include #include #include