Define newmenu_item::*_specific_type::nm_type

The *_specific_type structures have a static member `nm_type`.  In -O0
builds, an out-of-line definition of this member is required, but was
not present.  In -O2 builds, the optimizer happened to remove all
references to the out-of-line definition, so the link succeeded despite
not having a definition.  Add that definition.
This commit is contained in:
Kp 2016-09-28 01:56:12 +00:00
parent 10f4f87a36
commit 8d25cf4162

View file

@ -108,6 +108,12 @@ struct newmenu : embed_window_pointer_t
}
};
constexpr std::integral_constant<unsigned, NM_TYPE_INPUT> newmenu_item::input_specific_type::nm_type;
constexpr std::integral_constant<unsigned, NM_TYPE_RADIO> newmenu_item::radio_specific_type::nm_type;
constexpr std::integral_constant<unsigned, NM_TYPE_NUMBER> newmenu_item::number_specific_type::nm_type;
constexpr std::integral_constant<unsigned, NM_TYPE_INPUT_MENU> newmenu_item::imenu_specific_type::nm_type;
constexpr std::integral_constant<unsigned, NM_TYPE_SLIDER> newmenu_item::slider_specific_type::nm_type;
static grs_main_bitmap nm_background, nm_background1;
static grs_subbitmap_ptr nm_background_sub;