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.
This commit is contained in:
Albrecht Schlosser 2023-03-01 17:24:03 +01:00
parent 43ae343bf3
commit 2626962dd3
3 changed files with 5 additions and 3 deletions

View File

@ -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 *);

View File

@ -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_;

View File

@ -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:
/*