diff options
| author | Matthias Melcher <git@matthiasm.com> | 2022-01-08 21:55:19 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2022-01-08 22:12:41 +0100 |
| commit | 42a93eb8dec6e3c637442e23e156b3f72c7f8ca7 (patch) | |
| tree | d3edd493518ff7a78a2e733dadb98d07a1fec753 /fluid/Fl_Menu_Type.cxx | |
| parent | 9a2b3ef798d0baf4228b69b941b7cdb25aca6ab6 (diff) | |
avoid early include of Fl.H option
Diffstat (limited to 'fluid/Fl_Menu_Type.cxx')
| -rw-r--r-- | fluid/Fl_Menu_Type.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fluid/Fl_Menu_Type.cxx b/fluid/Fl_Menu_Type.cxx index 48087e6c3..14f371d57 100644 --- a/fluid/Fl_Menu_Type.cxx +++ b/fluid/Fl_Menu_Type.cxx @@ -242,8 +242,10 @@ const char* Fl_Menu_Item_Type::menu_name(int& i) { } void Fl_Menu_Item_Type::write_static() { - if (image && label() && label()[0]) + if (image && label() && label()[0]) { + write_declare("#include <FL/Fl.H>"); write_declare("#include <FL/Fl_Multi_Label.H>"); + } if (callback() && is_name(callback()) && !user_defined(callback())) write_declare("extern void %s(Fl_Menu_*, %s);", callback(), user_data_type() ? user_data_type() : "void*"); |
