]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/radiobut.cpp
reverted Chris' MSW additions patch (we should use IPC, not Windows-only functions...
[wxWidgets.git] / src / motif / radiobut.cpp
index 4c7e3c755e65a36ec1e063452ad29eabac7e4d88..9d77c21388a01c6b2de3990fcab1f57c2c86b104 100644 (file)
 #pragma implementation "radiobut.h"
 #endif
 
+#ifdef __VMS
+#define XtDisplay XTDISPLAY
+#endif
+
+#include "wx/defs.h"
+
 #include "wx/radiobut.h"
 #include "wx/utils.h"
 
@@ -34,9 +40,7 @@
 void wxRadioButtonCallback (Widget w, XtPointer clientData,
                             XmToggleButtonCallbackStruct * cbs);
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
-#endif
 
 wxRadioButton::wxRadioButton()
 {
@@ -85,17 +89,8 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID id,
         NULL);
     XmStringFree (text);
 
-#ifdef __VMS__
-#pragma message disable voiincconext
-       // VMS gives here the compiler warning:
-       // conversion from pointer to function to void* permitted
-       // as an extension
-#endif
     XtAddCallback (radioButtonWidget, XmNvalueChangedCallback, (XtCallbackProc) wxRadioButtonCallback,
-        (XtCallbackProc) this);
-#ifdef __VMS__
-#pragma message enable voiincconext
-#endif
+        (XtPointer) this);
 
     m_mainWidget = (WXWidget) radioButtonWidget;