diff --git a/src/libCom/misc/epicsExport.h b/src/libCom/misc/epicsExport.h index 10df5f179..dea8dd67a 100644 --- a/src/libCom/misc/epicsExport.h +++ b/src/libCom/misc/epicsExport.h @@ -26,7 +26,7 @@ typedef void (*REGISTRAR)(void); #define epicsExportAddress(typ,obj) \ epicsShareExtern typ *EPICS_EXPORT_POBJ(typ,obj); \ -epicsShareDef typ *EPICS_EXPORT_POBJ(typ,obj) = (typ *)&obj +epicsShareDef typ *EPICS_EXPORT_POBJ(typ,obj) = (typ *)(char *)&obj #define epicsExportRegistrar(func) \ epicsShareFunc REGISTRAR EPICS_EXPORT_PFUNC(func) = (REGISTRAR)(void*)&func