From 0941f0600a26b85b49ab37ab2068a42a4962359c Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 8 Mar 2025 16:59:02 +0100 Subject: Add Fl_Darwin_System_Driver::filename_relative() This removes the last instance in FLTK of use of #if __APPLE__ instead of the driver mechanism. --- src/drivers/Darwin/Fl_Darwin_System_Driver.H | 1 + src/drivers/Darwin/Fl_Darwin_System_Driver.cxx | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src/drivers/Darwin') diff --git a/src/drivers/Darwin/Fl_Darwin_System_Driver.H b/src/drivers/Darwin/Fl_Darwin_System_Driver.H index 011bea7ff..7dd0ae6da 100644 --- a/src/drivers/Darwin/Fl_Darwin_System_Driver.H +++ b/src/drivers/Darwin/Fl_Darwin_System_Driver.H @@ -79,6 +79,7 @@ public: Fl_Sys_Menu_Bar_Driver *sys_menu_bar_driver() FL_OVERRIDE; double wait(double time_to_wait) FL_OVERRIDE; int ready() FL_OVERRIDE; + int filename_relative(char *to, int tolen, const char *dest_dir, const char *base_dir) FL_OVERRIDE; }; #endif // FL_DARWIN_SYSTEM_DRIVER_H diff --git a/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx b/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx index 9b6a2a694..431e908a5 100644 --- a/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx +++ b/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx @@ -367,3 +367,8 @@ void Fl_Darwin_System_Driver::tree_draw_expando_button(int x, int y, bool state, int Fl_Darwin_System_Driver::tree_connector_style() { return FL_TREE_CONNECTOR_NONE; } + + +int Fl_Darwin_System_Driver::filename_relative(char *to, int tolen, const char *dest_dir, const char *base_dir) { + return Fl_System_Driver::filename_relative_(to, tolen, dest_dir, base_dir, false); +} -- cgit v1.2.3