Fixes for 16-bit compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -261,7 +261,14 @@ void wxMenu::Append(wxMenuItem *pItem)
|
||||
{
|
||||
// menu is just a normal string (passed in data parameter)
|
||||
flags |= MF_STRING;
|
||||
|
||||
// Don't know what the correct cast should be, but it doesn't
|
||||
// compile in BC++/16-bit without this cast.
|
||||
#if !defined(__WIN32__)
|
||||
pData = (char*) (const char*) label;
|
||||
#else
|
||||
pData = label;
|
||||
#endif
|
||||
}
|
||||
|
||||
if ( !::AppendMenu(GetHmenu(), flags, id, pData) )
|
||||
|
Reference in New Issue
Block a user