forked from epics_driver_modules/motorBase
define VERSION_INT when using older EPICS bases
Newer EPICS base versions define VERSION_INT, but older don't. Add a conditional #define to compile against those older bases, like 3.14
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user