Use a particulaly unpleasant cast to get a void * into an enumeration type.
authorPeter Howkins <flibble@users.sourceforge.net>
Mon, 2 Apr 2012 14:15:04 +0000 (15:15 +0100)
committerPeter Howkins <flibble@users.sourceforge.net>
Mon, 2 Apr 2012 14:15:04 +0000 (15:15 +0100)
cde/programs/dtmail/dtmail/DmxPrintOptions.C

index a767c73f5cd9751550b03bd55826cba8dcd60eb7..471ca5ce7b7dc543cff755248b9bec38a7648cee 100644 (file)
@@ -671,7 +671,11 @@ DmxPrintOptions::isValidMarginSpec(PropUiItem* pui, void* data)
     char       *marginSpec = NULL;
     XtEnum     parseError;
     Widget     text;
+#if defined(linux)
+    _DtPrintMarginEnum which = *((_DtPrintMarginEnum *) data);
+#else
     _DtPrintMarginEnum which = (_DtPrintMarginEnum) data;
+#endif
 
     text = pui->getWidget();
     if (text)