Author: AlbrechtS
Date: 2012-04-05 08:04:43 -0700 (Thu, 05 Apr 2012)
New Revision: 9327
Log:
Fix MS VC++ (2008/2010) compiler error, as discussed in fltk.general in
thread "Compilation error on windows VS 2010 (r9300)" of Mar 24, 2012.
Only the "static" attribute had to be fixed now, since the enum access
problem had been fixed before (r 9325).
Modified:
branches/branch-1.3/FL/Fl_Window.H
Modified: branches/branch-1.3/FL/Fl_Window.H
===================================================================
--- branches/branch-1.3/FL/Fl_Window.H 2012-04-05 14:30:19 UTC (rev 9326)
+++ branches/branch-1.3/FL/Fl_Window.H 2012-04-05 15:04:43 UTC (rev 9327)
@@ -49,10 +49,25 @@
class FL_EXPORT Fl_Window : public Fl_Group {
static char *default_xclass_;
+ // Note: we must use separate statements for each of the following 4
variables,
+ // with the static attribute, otherwise MS VC++ 2008/2010 complains :-(
+ // AlbrechtS 04/2012
#if FLTK_ABI_VERSION < 10302
static // when these members are static, ABI compatibility with 1.3.0 is
respected
#endif
- int no_fullscreen_x, no_fullscreen_y, no_fullscreen_w, no_fullscreen_h;
+ int no_fullscreen_x;
+#if FLTK_ABI_VERSION < 10302
+ static // when these members are static, ABI compatibility with 1.3.0 is
respected
+#endif
+ int no_fullscreen_y;
+#if FLTK_ABI_VERSION < 10302
+ static // when these members are static, ABI compatibility with 1.3.0 is
respected
+#endif
+ int no_fullscreen_w;
+#if FLTK_ABI_VERSION < 10302
+ static // when these members are static, ABI compatibility with 1.3.0 is
respected
+#endif
+ int no_fullscreen_h;
friend class Fl_X;
Fl_X *i; // points at the system-specific stuff
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit