From 6276822e9e8f505756b386637df9e14dd5a8e2fb Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 2 Feb 2023 18:48:13 +0100 Subject: Allow cmake -DOPTION_APPLE_X11=On without -U__APPLE__ --- src/drivers/Posix/Fl_Posix_System_Driver.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/drivers/Posix') diff --git a/src/drivers/Posix/Fl_Posix_System_Driver.cxx b/src/drivers/Posix/Fl_Posix_System_Driver.cxx index d8075775d..6d5231365 100644 --- a/src/drivers/Posix/Fl_Posix_System_Driver.cxx +++ b/src/drivers/Posix/Fl_Posix_System_Driver.cxx @@ -1,7 +1,7 @@ // // Definition of Posix system driver (used by the X11, Wayland and macOS platforms). // -// Copyright 1998-2022 by Bill Spitzak and others. +// Copyright 1998-2023 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 @@ -262,7 +262,13 @@ bool Fl_Posix_System_Driver::probe_for_GTK(int major, int minor, void **p_ptr_gt #endif } else { // Try then with GTK2 - Fl_Posix_System_Driver::ptr_gtk = Fl_Posix_System_Driver::dlopen_or_dlsym("libgtk-x11-2.0"); + Fl_Posix_System_Driver::ptr_gtk = Fl_Posix_System_Driver::dlopen_or_dlsym( +#ifdef __APPLE__ + "libgtkmacintegration-gtk2" +#else + "libgtk-x11-2.0" +#endif + ); #ifdef DEBUG if (Fl_Posix_System_Driver::ptr_gtk) { puts("selected GTK-2\n"); -- cgit v1.2.3