From 1d9cf7d362242d7567525bf58c92e50efcc0f487 Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Fri, 14 Feb 2003 15:00:21 +0000 Subject: [PATCH] Work around SUNPro compiler error. --- motorApp/SoftMotorSrc/devSoft.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/motorApp/SoftMotorSrc/devSoft.cc b/motorApp/SoftMotorSrc/devSoft.cc index b6c136d1..781ec766 100644 --- a/motorApp/SoftMotorSrc/devSoft.cc +++ b/motorApp/SoftMotorSrc/devSoft.cc @@ -2,9 +2,9 @@ FILENAME... devSoft.c USAGE... Motor record device level support for Soft channel. -Version: $Revision: 1.2 $ +Version: $Revision: 1.3 $ Modified By: $Author: sluiter $ -Last Modified: $Date: 2002-10-31 21:07:25 $ +Last Modified: $Date: 2003-02-14 15:00:21 $ */ /* @@ -275,9 +275,17 @@ LOGIC... void soft_motor_callback(CALLBACK *cbptr) { +#ifdef __GNUG__ struct motorRecord *mr; callbackGetUser((void *) mr, cbptr); soft_process(mr); + +#else + void *mr; + + callbackGetUser(mr, cbptr); + soft_process((motorRecord *) mr); +#endif }