From 7795c597afe9c2217120e14181703a57f340024f Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 2 Apr 2012 15:15:04 +0100 Subject: [PATCH] Use a particulaly unpleasant cast to get a void * into an enumeration type. --- cde/programs/dtmail/dtmail/DmxPrintOptions.C | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cde/programs/dtmail/dtmail/DmxPrintOptions.C b/cde/programs/dtmail/dtmail/DmxPrintOptions.C index a767c73f..471ca5ce 100644 --- a/cde/programs/dtmail/dtmail/DmxPrintOptions.C +++ b/cde/programs/dtmail/dtmail/DmxPrintOptions.C @@ -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) -- 2.25.1