On 4/2/19 9:24 AM, Dirk Zimoch via Core-talk wrote:
The function definition errSymbolAdd() (and others) have disappeared from errMdef.h. Thus when compiling a driver including errMdef.h and using errSymbolAdd(), I get a compiler warning
because of the missing function prototype.
The prototypes are now in the new header file errSymTbl.h. But simply including the new file instead is no good solution, because then the driver does not compile with older EPICS versions any more.
Instead I have use compiler branches based on EPICS versions. That is a bit inconvenient.
Not sure what you mean by "compiler branches" there.
I believe the M_syd macro has not been used since before I started with EPICS. The comment for it said "Sync Data Routines; see sydDefs.h" but that header has not been present in any 3.13 release so I finally deleted that symbol while restructuring the libcom/src/error
files.
Alternatively you could do a version number check (see the other epicsVersion.h thread for details) but the above suggestion is simpler and faster.
- Andrew
--
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon