diff --git a/motorApp/MotorSrc/devMotorAsyn.c b/motorApp/MotorSrc/devMotorAsyn.c index 652c9edd..42f0180a 100644 --- a/motorApp/MotorSrc/devMotorAsyn.c +++ b/motorApp/MotorSrc/devMotorAsyn.c @@ -47,6 +47,10 @@ #include "epicsVersion.h" +#ifndef VERSION_INT +# define VERSION_INT(V,R,M,P) ( ((V)<<24) | ((R)<<16) | ((M)<<8) | (P)) +#endif + #define VERSION_INT_3_16 VERSION_INT(3,16,0,0) #if EPICS_VERSION_INT < VERSION_INT_3_16 #define RECSUPFUN_CAST (RECSUPFUN) diff --git a/motorApp/MotorSrc/motorRecord.cc b/motorApp/MotorSrc/motorRecord.cc index bf0decda..befd4945 100644 --- a/motorApp/MotorSrc/motorRecord.cc +++ b/motorApp/MotorSrc/motorRecord.cc @@ -196,6 +196,10 @@ USAGE... Motor Record Support. #include "epicsVersion.h" +#ifndef VERSION_INT +# define VERSION_INT(V,R,M,P) ( ((V)<<24) | ((R)<<16) | ((M)<<8) | (P)) +#endif + #define VERSION_INT_3_16 VERSION_INT(3,16,0,0) #if EPICS_VERSION_INT < VERSION_INT_3_16 #define RECSUPFUN_CAST (RECSUPFUN) diff --git a/motorApp/MotorSrc/motorUtilAux.cc b/motorApp/MotorSrc/motorUtilAux.cc index 5b5bbb79..018cb816 100644 --- a/motorApp/MotorSrc/motorUtilAux.cc +++ b/motorApp/MotorSrc/motorUtilAux.cc @@ -30,6 +30,10 @@ USAGE... Motor Record Utility Support. #include "epicsVersion.h" +#ifndef VERSION_INT +# define VERSION_INT(V,R,M,P) ( ((V)<<24) | ((R)<<16) | ((M)<<8) | (P)) +#endif + #define VERSION_INT_3_16 VERSION_INT(3,16,0,0) #if EPICS_VERSION_INT < VERSION_INT_3_16 #define RECSUPFUN_CAST (RECSUPFUN) diff --git a/motorApp/MotorSrc/motordevCom.cc b/motorApp/MotorSrc/motordevCom.cc index cbe539a7..540da34f 100644 --- a/motorApp/MotorSrc/motordevCom.cc +++ b/motorApp/MotorSrc/motordevCom.cc @@ -61,6 +61,10 @@ USAGE... This file contains device functions that are common to all motor #include "epicsVersion.h" +#ifndef VERSION_INT +# define VERSION_INT(V,R,M,P) ( ((V)<<24) | ((R)<<16) | ((M)<<8) | (P)) +#endif + #define VERSION_INT_3_16 VERSION_INT(3,16,0,0) #if EPICS_VERSION_INT < VERSION_INT_3_16 #define RECSUPFUN_CAST (RECSUPFUN)