3.14 compat

This commit is contained in:
Michael Davidsaver
2020-04-13 13:31:05 -07:00
parent c158bbd6b0
commit 6ffcf60a3c
6 changed files with 26 additions and 7 deletions
+1 -6
View File
@@ -17,11 +17,6 @@ install: $(TOP)/configure/CONFIG_SITE.Common.$(T_A)
$(TOP)/configure/CONFIG_SITE.Common.$(T_A): toolchain.c
$(PREPROCESS.cpp)
else
clean: cleanToolchain
.PHONY: cleanToolchain
cleanToolchain:
$(RM) $(wildcard CONFIG_SITE.Common.*)
CLEANS += ../CONFIG_SITE.Common.$(T_A)
endif
+9 -1
View File
@@ -20,7 +20,6 @@
#include <envDefs.h>
#include <dbDefs.h>
#include <osiSock.h>
#include <epicsStackTrace.h>
#include <epicsString.h>
#include <cantProceed.h>
#include <epicsStdio.h>
@@ -29,9 +28,18 @@
#include <epicsGuard.h>
#include <epicsTime.h>
#if EPICS_VERSION_INT>=VERSION_INT(3,15,0,0)
# include <epicsStackTrace.h>
# define USE_STACKTRACE
#endif
#include "evhelper.h"
#include "utilpvt.h"
#ifndef USE_STACKTRACE
static void epicsStackTrace() {}
#endif
typedef epicsGuard<epicsMutex> Guard;
namespace pvxs {
+1
View File
@@ -21,6 +21,7 @@
#include <event2/buffer.h>
#include <pvxs/version.h>
#include "utilpvt.h"
namespace pvxs {namespace impl {
+6
View File
@@ -6,6 +6,8 @@
#ifndef PVXS_VERSION_H
#define PVXS_VERSION_H
#include <epicsVersion.h>
#if defined(_WIN32) || defined(__CYGWIN__)
# if defined(PVXS_API_BUILDING) && defined(EPICS_BUILD_DLL)
@@ -36,6 +38,10 @@
# define VERSION_INT(V,R,M,P) ( ((V)<<24) | ((R)<<16) | ((M)<<8) | (P))
#endif
#ifndef EPICS_VERSION_INT
# define EPICS_VERSION_INT VERSION_INT(EPICS_VERSION, EPICS_REVISION, EPICS_MODIFICATION, EPICS_PATCH_LEVEL)
#endif
//! Current library version
#define PVXS_VERSION VERSION_INT(PVXS_MAJOR_VERSION, PVXS_MINOR_VERSION, PVXS_MAINTENANCE_VERSION, 0)
+1
View File
@@ -7,6 +7,7 @@
#include <string.h>
#include <epicsStdlib.h>
#include <epicsTypes.h>
#include <pvxs/sharedArray.h>
#include <pvxs/data.h>
+8
View File
@@ -27,6 +27,14 @@
#include <pvxs/version.h>
#include <pvxs/util.h>
#ifndef EPICS_ALWAYS_INLINE
# if __GNUC__
# define EPICS_ALWAYS_INLINE __inline__ __attribute__((always_inline))
# else
# define EPICS_ALWAYS_INLINE inline
# endif
#endif
namespace pvxs {namespace impl {
//! in-line string builder (eg. for exception messages)