Mac OS: simplified use of #define MAC_OS_X_VERSION_10_x

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-09-22 11:40:53 +00:00
parent 76b50461ed
commit 5b04fd35fc
2 changed files with 1 additions and 6 deletions

View File

@ -138,9 +138,6 @@ extern Window fl_window;
#endif // FL_LIBRARY || FL_INTERNALS
#ifndef MAC_OS_X_VERSION_10_3
#define MAC_OS_X_VERSION_10_3 1030
#endif
#ifndef MAC_OS_X_VERSION_10_4
#define MAC_OS_X_VERSION_10_4 1040
#endif

View File

@ -30,6 +30,7 @@
#include <FL/Fl.H>
#include <FL/x.H>
#include <FL/Fl_Native_File_Chooser.H>
#include <FL/Fl_File_Chooser.H>
#include <FL/filename.H>
@ -340,9 +341,6 @@ int Fl_Native_File_Chooser::filters() const {
#import <Cocoa/Cocoa.h>
#define UNLIKELYPREFIX "___fl_very_unlikely_prefix_"
#ifndef MAC_OS_X_VERSION_10_6
#define MAC_OS_X_VERSION_10_6 1060
#endif
int Fl_Native_File_Chooser::get_saveas_basename(void) {
char *q = strdup( [[(NSSavePanel*)_panel filename] fileSystemRepresentation] );