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:
parent
76b50461ed
commit
5b04fd35fc
3
FL/mac.H
3
FL/mac.H
@ -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
|
||||
|
@ -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] );
|
||||
|
Loading…
Reference in New Issue
Block a user