About the interrogative comment added, I imagine by Matt, at line
322 of file src/fl_font_mac.cxx:
// FIXME: I do not understand the shuffeling of the above ifdef's
// and why they are here!

The recommend way to deal with a system call appearing in a Mac OS
version, say newcall() in 10.5 is:
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
if(newcall != NULL) {
  newcall(args);
}
else {
#endif
  ... code that does the same as newcall without it ...
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
}
#endif

This allows to compile the program under recent OS versions and
execute it under older versions. And also to compile it under
older versions.

In file fl_font_mac.cxx, the section
  ... code that does the same as newcall without it ...
is not allowed when compiling in 64-bit, so this section has to be
bracketted by #if !__LP64__ / #endif. Because 64-bit compilation
makes no sense under older OS versions, the fl_font_mac code is
functional in all sensible combinations of OS versions and
bit lengths.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to