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

[STR Pending]

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


Greg wrote regarding WIN32 vs. _WIN32: "Hmm, I'm thinking example code
probably shouldn't assume special FLTK build flags are set, ..."

This is not a special FLTK /build/ flag, but /must/ be set for all FLTK
programs on Windows (except as noted above for Cygwin/X11). You can see
why if you run:

$ grep WIN32 FL/* | grep '#.*if'

Of course, the easiest way to achieve this is to use fltk-config
--cxxflags, but Windows IDE users must use the #define in their project
settings.

Thus, all example programs should IMHO use the same defines to conform to
FLTK coding standards.

Another related question would be whether they are allowed to #include
config.h. The answer is: no, because they should be independent of the
build files, so that they can be copied to user code or be compiled
independent of the library, as you mentioned above.


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

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

Reply via email to