diff options
| author | Manolo Gouy <Manolo> | 2010-12-19 17:57:19 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-12-19 17:57:19 +0000 |
| commit | dc0c85b9644553ac9b5c51da43697b9906f9b44d (patch) | |
| tree | 1d5fd97595bb53b1915fb5b286f94ff35e74b891 /src | |
| parent | 29cff1612f51a69e3a45dcdfdc785c1b84e85348 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Native_File_Chooser_MAC.mm | 4 | ||||
| -rw-r--r-- | src/Fl_cocoa.mm | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Native_File_Chooser_MAC.mm b/src/Fl_Native_File_Chooser_MAC.mm index f3b8d6f2b..9ed970d69 100644 --- a/src/Fl_Native_File_Chooser_MAC.mm +++ b/src/Fl_Native_File_Chooser_MAC.mm @@ -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$". diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index ea3c05983..cd191a5a0 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -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 $". |
