Author: manolo Date: 2011-03-03 03:54:46 -0800 (Thu, 03 Mar 2011) New Revision: 599 Log: Some rewording in the Preprocessor section.
Modified: trunk/cmp.php Modified: trunk/cmp.php =================================================================== --- trunk/cmp.php 2011-03-02 20:41:10 UTC (rev 598) +++ trunk/cmp.php 2011-03-03 11:54:46 UTC (rev 599) @@ -1148,23 +1148,23 @@ must not, directly or indirectly, include config.h. <ul> -<li>WIN32. This variable identifies the MS-Windows platform (both +<li>WIN32 identifies the MS-Windows platform (both for the 32- and 64-bit versions). Don't use _WIN32. <li>__CYGWIN__ is defined when FLTK runs on the MS-Windows OS but uses Cygwin's POSIX emulation features (cygwin1.dll). [more to come...] -<li>__APPLE__. This variable identifies the Mac OS X platform. +<li>__APPLE__ identifies the Mac OS X platform. <li>__APPLE_QUARTZ__ is defined by config.h for the Mac OS X platform. At present, use of __APPLE_QUARTZ__ is equivalent to using __APPLE__. This may change in the future if other graphics systems than Quartz are supported on the Mac OS platform. -<li>USE_X11. This variable is defined by config.h when Xlib is the +<li>USE_X11 is defined by config.h when Xlib is the graphics system used. Thus, USE_X11 is defined on all Unix and Linux platforms, and on Windows, if configure used <tt>--enable-cygwin</tt> -<b>and</b> <tt>--enable-x11</tt>. Xlib-targetted code is also often +<b>and</b> <tt>--enable-x11</tt>. Xlib-specific code is also often delimited without reference to the USE_X11 variable (thus without the requirement to include config.h) as follows: <pre><tt>#if defined(WIN32) @@ -1193,12 +1193,12 @@ has two major uses. <ol> <li> <tt>#ifndef FL_DOXYGEN / #endif</tt> allows to hide code from Doxygen. -<li>The Doxygen program does not define the platform-diagnostic +<li>The Doxygen program does not define the platform-specific variables __APPLE__ or WIN32 (even if it's run on Mac OS or MSWindows). -Thus, for some platform-specific (say, Mac-specific) code to be -seen by Doxygen, one must bracket it as follows: +Thus, platform-specific (say, Mac-specific) code must be bracketted as +follows to be seen by Doxygen : <pre><tt>#if defined(__APPLE__) || defined(FL_DOXYGEN) -... Doxygen-visible Mac-specific code ... +... Doxygen-visible, Mac-specific code ... #endif </tt></pre> </ol> _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
