Re: [fltk.bugs] [MOD] STR #2557: gcc undefines min/max macros

2011-02-07 Thread Manolo Gouy

[STR Closed w/Resolution]

Link: http://www.fltk.org/str.php?L2557
Version: 1.3.0
Fix Version: 1.3.0 (r8398)


Fixed in Subversion repository.

The min() macro has been removed.


Link: http://www.fltk.org/str.php?L2557
Version: 1.3.0
Fix Version: 1.3.0 (r8398)

___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs


[fltk.bugs] [MOD] STR #2557: gcc undefines min/max macros

2011-02-07 Thread Pierre Ossman

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2557
Version: 1.3-current


In fl_draw.cxx there is a macro for min(). Unfortunately this breaks with
gcc on some platforms as it undefines min and max (since those macros will
break C++ standard headers).

The workaround is simply to move the macro definition until after you've
included all of the headers.

Observed with a Mac OS X 10.4 target with gcc 4.4.3.


Link: http://www.fltk.org/str.php?L2557
Version: 1.3-current

___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs