Added protection against compilation besides Mac OS X.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2010-12-19 17:57:19 +00:00
parent 29cff1612f
commit dc0c85b964
2 changed files with 4 additions and 4 deletions

View File

@ -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 @@ int Fl_Native_File_Chooser::post() {
return (retval == NSOKButton ? 0 : 1);
}
#endif /*!FL_DOXYGEN*/
#endif // __APPLE__
//
// End of "$Id$".

View File

@ -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 @@ CGRect fl_cgrectmake_cocoa(int x, int y, int w, int h) {
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 $".