diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-03-01 17:24:03 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-03-01 17:24:03 +0100 |
| commit | 2626962dd3351fb33c7728a462b02d8e39d4502d (patch) | |
| tree | 27c6dc548b4dfcac4f7a5b96d1e8bcddd6a8a888 | |
| parent | 43ae343bf33b882ac3d621e335f7046785dff210 (diff) | |
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.
| -rw-r--r-- | FL/Fl_Scheme_Choice.H | 2 | ||||
| -rw-r--r-- | FL/Fl_Shortcut_Button.H | 2 | ||||
| -rw-r--r-- | 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 <FL/Fl_Scheme.H> #include <FL/Fl_Choice.H> -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 <FL/Fl_Button.H> -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: /* |
