From 2626962dd3351fb33c7728a462b02d8e39d4502d Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 1 Mar 2023 17:24:03 +0100 Subject: [PATCH] Fix regression: failed to build shared FLTK libs Add FL_EXPORT to some classes to make building shared libs possible. Building shared libs and 'fluid-shared' missed global symbols. --- FL/Fl_Scheme_Choice.H | 2 +- FL/Fl_Shortcut_Button.H | 2 +- FL/Fl_String.H | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/FL/Fl_Scheme_Choice.H b/FL/Fl_Scheme_Choice.H index e45befcdd..336d43fb3 100644 --- a/FL/Fl_Scheme_Choice.H +++ b/FL/Fl_Scheme_Choice.H @@ -21,7 +21,7 @@ #include #include -class Fl_Scheme_Choice : public Fl_Choice { +class FL_EXPORT Fl_Scheme_Choice : public Fl_Choice { protected: static void scheme_cb_(Fl_Widget *w, void *); diff --git a/FL/Fl_Shortcut_Button.H b/FL/Fl_Shortcut_Button.H index f928944f5..5fef2ccb5 100644 --- a/FL/Fl_Shortcut_Button.H +++ b/FL/Fl_Shortcut_Button.H @@ -19,7 +19,7 @@ #include -class Fl_Shortcut_Button : public Fl_Button { +class FL_EXPORT Fl_Shortcut_Button : public Fl_Button { private: bool hot_, pre_hot_; Fl_Shortcut pre_esc_; diff --git a/FL/Fl_String.H b/FL/Fl_String.H index bb38776ad..f3ae71b1b 100644 --- a/FL/Fl_String.H +++ b/FL/Fl_String.H @@ -21,6 +21,8 @@ Basic Fl_String class for FLTK. */ +#include "Fl_Export.H" + // See: https://en.cppreference.com/w/cpp/string/basic_string/basic_string /** @@ -49,7 +51,7 @@ \since 1.4.0 */ -class Fl_String { +class FL_EXPORT Fl_String { private: /*