summaryrefslogtreecommitdiff
path: root/src/drivers/Posix/Fl_Posix_System_Driver.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-05-03 21:42:00 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-05-03 21:42:00 +0200
commitcce652f58c658703d007eec241957acdb45e6c5c (patch)
treed2b6f6b3e7e86e827a49b8997ff0d39f64713c1b /src/drivers/Posix/Fl_Posix_System_Driver.cxx
parent08a8e78d6e8398739e610a424ed3644f41075e05 (diff)
Fix compiler warning on macOS
Compiling drivers/Posix/Fl_Posix_System_Driver.cxx... drivers/Posix/Fl_Posix_System_Driver.cxx:176:14: warning: unused function 'quadruple_dlopen' [-Wunused-function]
Diffstat (limited to 'src/drivers/Posix/Fl_Posix_System_Driver.cxx')
-rw-r--r--src/drivers/Posix/Fl_Posix_System_Driver.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/Posix/Fl_Posix_System_Driver.cxx b/src/drivers/Posix/Fl_Posix_System_Driver.cxx
index 4a8ccda3c..68ae75869 100644
--- a/src/drivers/Posix/Fl_Posix_System_Driver.cxx
+++ b/src/drivers/Posix/Fl_Posix_System_Driver.cxx
@@ -172,7 +172,8 @@ int Fl_Posix_System_Driver::run_program(const char *program, char **argv, char *
}
-#if HAVE_DLSYM && HAVE_DLFCN_H
+#if HAVE_DLSYM && HAVE_DLFCN_H && !defined (__APPLE_CC__)
+
static void* quadruple_dlopen(const char *libname)
{
char filename2[FL_PATH_MAX];
@@ -272,7 +273,7 @@ bool Fl_Posix_System_Driver::probe_for_GTK(int major, int minor, void **p_ptr_gt
}
init_f = (init_t)dlsym(Fl_Posix_System_Driver::ptr_gtk, "gtk_init_check");
if (!init_f) return false;
-
+
*p_ptr_gtk = Fl_Posix_System_Driver::ptr_gtk;
// The point here is that after running gtk_init_check, the calling program's current locale can be modified.
// To avoid that, we memorize the calling program's current locale and restore the locale