]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/menucmn.cpp
a small compilation fix
[wxWidgets.git] / src / common / menucmn.cpp
index 65459efdd33d93bdf0db9ce1d210bf965ce9a6a4..5d917876657b78bfb573fc4fc6c1051d98cf9c0d 100644 (file)
@@ -125,7 +125,10 @@ void wxMenuBase::Init(long style)
     m_style = style;
     m_clientData = (void *)NULL;
     m_eventHandler = this;
+
+#if wxUSE_MENU_CALLBACK
     m_callback = (wxFunction) NULL;
+#endif // wxUSE_MENU_CALLBACK
 }
 
 wxMenuBase::~wxMenuBase()