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 {