Don't use preprocessor conditions inside a macro invocation, MSVC doesn't
support this.
Closes #14448.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71947
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
// attaching to style changed signal after realization avoids initial
// changes we don't care about
- g_signal_connect(m_wxwindow,
+ const gchar *detailed_signal =
#ifdef __WXGTK3__
- "style_updated",
+ "style_updated";
#else
- "style_set",
+ "style_set";
#endif
+ g_signal_connect(m_wxwindow,
+ detailed_signal,
G_CALLBACK(style_updated), this);
}
}