FLTK logo

[master] 4eaa6df - Remove platform #ifdef from macOS native filechooser

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 4eaa6df - Remove platform #ifdef from macOS native filechooser "Albrecht Schlosser" Feb 03, 2022  
 
commit 4eaa6dfd0d589757c37cc2de14389f6a15b0219b
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Thu Feb 3 19:38:33 2022 +0100
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Thu Feb 3 19:38:33 2022 +0100

    Remove platform #ifdef from macOS native filechooser

 src/Fl_Native_File_Chooser_MAC.mm | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git src/Fl_Native_File_Chooser_MAC.mm src/Fl_Native_File_Chooser_MAC.mm
index ae0072f..413ceda 100644
--- src/Fl_Native_File_Chooser_MAC.mm
+++ src/Fl_Native_File_Chooser_MAC.mm
@@ -1,8 +1,8 @@
 //
-// FLTK native OS file chooser widget
+// FLTK native OS file chooser widget for macOS
 //
-// Copyright 1998-2018 by Bill Spitzak and others.
 // Copyright 2004 Greg Ercolano.
+// Copyright 1998-2022 by Bill Spitzak and others.
 //
 // This library is free software. Distribution and use rights are outlined in
 // the file "COPYING" which should have been included with this file.  If this
@@ -20,8 +20,6 @@
 //        Possibly 'preset_file' could be used to select the filename.
 //
 
-#ifdef __APPLE__
-
 #include <FL/Fl.H>
 #include <FL/platform.H> // for fl_mac_os_version
 #include <FL/Fl_Native_File_Chooser.H>
@@ -759,5 +757,3 @@ int Fl_Quartz_Native_File_Chooser_Driver::post() {
   [localPool release];
   return (retval == 1 ? 0 : 1);
 }
-
-#endif // __APPLE__
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.