#endif
#if !wxMOTIF_USE_RENDER_TABLE
WXFontList m_fontList; // Motif XmFontList
-#else // if wxUSE_RENDER_TABLE
+#else // if wxMOTIF_USE_RENDER_TABLE
WXRenderTable m_renderTable; // Motif XmRenderTable
WXRendition m_rendition; // Motif XmRendition
#endif
if (m_fontList)
XmFontListFree ((XmFontList) m_fontList);
m_fontList = NULL;
-#else // if wxUSE_RENDER_TABLE
+#else // if wxMOTIF_USE_RENDER_TABLE
if (m_renderTable)
XmRenderTableFree ((XmRenderTable) m_renderTable);
m_renderTable = NULL;
int count = 0;
#if wxMOTIF_NEW_FONT_HANDLING
- wxChar* fontSpec = wxStrdup( xFontSpec.mb_str() );
+ char* fontSpec = wxStrdup(xFontSpec.mb_str());
XtSetArg( args[count], XmNfontName, fontSpec ); ++count;
XtSetArg( args[count], XmNfontType, XmFONT_IS_FONTSET ); ++count;
#else
XCharStruct overall;
int slen = str.length();
- XTextExtents((XFontStruct*) pFontStruct, (char*) str.mb_str(), slen,
+ XTextExtents((XFontStruct*) pFontStruct,
+ wx_const_cast(char*, (const char *)str.mb_str()), slen,
&direction, &ascent2, &descent2, &overall);
if ( width )