Author: manolo
Date: 2010-12-19 09:57:19 -0800 (Sun, 19 Dec 2010)
New Revision: 8062
Log:
Added protection against compilation besides Mac OS X.

Modified:
   branches/branch-1.3/src/Fl_Native_File_Chooser_MAC.mm
   branches/branch-1.3/src/Fl_cocoa.mm

Modified: branches/branch-1.3/src/Fl_Native_File_Chooser_MAC.mm
===================================================================
--- branches/branch-1.3/src/Fl_Native_File_Chooser_MAC.mm       2010-12-19 
11:30:01 UTC (rev 8061)
+++ branches/branch-1.3/src/Fl_Native_File_Chooser_MAC.mm       2010-12-19 
17:57:19 UTC (rev 8062)
@@ -30,7 +30,7 @@
 //        Possibly 'preset_file' could be used to select the filename.
 //
 
-#ifndef FL_DOXYGEN             // PREVENT DOXYGEN'S USE OF THIS FILE
+#ifdef __APPLE__
 
 #include "Fl_Native_File_Chooser_common.cxx"           // 
strnew/strfree/strapp/chrcat
 #include <libgen.h>            // dirname(3)
@@ -577,7 +577,7 @@
   return (retval == NSOKButton ? 0 : 1);
 }
 
-#endif /*!FL_DOXYGEN*/
+#endif // __APPLE__
 
 //
 // End of "$Id$".

Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2010-12-19 11:30:01 UTC (rev 8061)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2010-12-19 17:57:19 UTC (rev 8062)
@@ -55,7 +55,7 @@
  fl_open_display()     in Fl.o
 */
 
-#ifndef FL_DOXYGEN
+#ifdef __APPLE__
 
 #define CONSOLIDATE_MOTION 0
 extern "C" {
@@ -3266,7 +3266,7 @@
   return CGRectMake(x, y, w > 0 ? w - 0.9 : 0, h > 0 ? h - 0.9 : 0);
 }
 
-#endif // FL_DOXYGEN
+#endif // __APPLE__
 
 //
 // End of "$Id: Fl_cocoa.mm 6971 2009-04-13 07:32:01Z matt $".

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to