From 0fd7b111a1d7448533efaf0132ea161a0c02393c Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 24 Nov 2015 14:39:06 -0500 Subject: [PATCH] pre-processor fun --- src/remote/codec.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/remote/codec.h b/src/remote/codec.h index edfd6f3..c45174b 100644 --- a/src/remote/codec.h +++ b/src/remote/codec.h @@ -23,8 +23,11 @@ #include #include -#if defined(EPICS_VERSION_INT) && EPICS_VERSION_INT>=VERSION_INT(3,15,1,0) +#ifdef EPICS_VERSION_INT +#if EPICS_VERSION_INT>=VERSION_INT(3,15,1,0) #include +#define PVA_CODEC_USE_ATOMIC +#endif #endif #include @@ -53,7 +56,8 @@ namespace epics { namespace pvAccess { namespace detail { -#if defined(EPICS_VERSION_INT) && EPICS_VERSION_INT>=VERSION_INT(3,15,1,0) +#ifdef PVA_CODEC_USE_ATOMIC +#undef PVA_CODEC_USE_ATOMIC template class AtomicValue {