From acf6c881d36b675d755433d3cf48613bc46ed78d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 3 Jan 2016 22:54:29 +0000 Subject: Updated platform specific #if's to report unimplemented code when compiling with FL_PORTING defined and WIN32 and __APPLE__ undefined> git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@10989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Native_File_Chooser.H | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'FL/Fl_Native_File_Chooser.H') diff --git a/FL/Fl_Native_File_Chooser.H b/FL/Fl_Native_File_Chooser.H index 1a9912a29..135f0399c 100644 --- a/FL/Fl_Native_File_Chooser.H +++ b/FL/Fl_Native_File_Chooser.H @@ -25,6 +25,7 @@ // Use Windows' chooser #ifdef WIN32 + // #define _WIN32_WINNT 0x0501 // needed for OPENFILENAME's 'FlagsEx' #if defined(FL_LIBRARY) || FLTK_ABI_VERSION < 10304 # include @@ -36,18 +37,21 @@ typedef BROWSEINFOW fl_BROWSEINFOW; typedef void fl_OPENFILENAMEW; typedef void fl_BROWSEINFOW; #endif -#endif +# include // FL_EXPORT // Use Apple's chooser -#ifdef __APPLE__ +#elif defined(__APPLE__) # define MAXFILTERS 80 -#endif +# include // FL_EXPORT + +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: define a file chooser if one is available on your platform" +# include // default to FLTK file chooser if none id ported // All else falls back to FLTK's own chooser -#if ! defined(__APPLE__) && !defined(WIN32) -# include #else -# include // FL_EXPORT +# include + #endif class Fl_FLTK_File_Chooser; @@ -192,9 +196,8 @@ private: void parse_filter(const char *); void clear_filters(); void add_filter(const char *, const char *); -#endif -#ifdef __APPLE__ +#elif defined(__APPLE__) private: int _btype; // kind-of browser to show() int _options; // general options @@ -230,9 +233,12 @@ private: void parse_filter(const char *from); int post(); int runmodal(); -#endif -#if ! defined(__APPLE__) && !defined(WIN32) +#elif defined(FL_PORTING) +# pragma message "FL_PORTING: define member variables for file chooser if one is available on your platform" + +#else + private: #if FLTK_ABI_VERSION <= 10302 int _btype; // kind-of browser to show() @@ -254,7 +260,8 @@ private: #endif }; -#if !defined(__APPLE__) && !defined(WIN32) + +#if !defined(__APPLE__) && !defined(WIN32) && !defined(FL_PORTING) class FL_EXPORT Fl_FLTK_File_Chooser { friend class Fl_Native_File_Chooser; protected: -- cgit v1.2.3