From f0fa8a2481dbf26aafc5502412ef3d5672f22a0b Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 16 Oct 2018 20:41:13 -0700 Subject: [PATCH] deprecate pvCopy.h --- src/copy/pv/pvCopy.h | 3 ++- src/copy/pvCopy.cpp | 3 +++ testApp/copy/testPVCopy.cpp | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/copy/pv/pvCopy.h b/src/copy/pv/pvCopy.h index ddeb890..607ce25 100644 --- a/src/copy/pv/pvCopy.h +++ b/src/copy/pv/pvCopy.h @@ -13,6 +13,7 @@ #include #include +#include #include #include @@ -58,7 +59,7 @@ typedef std::tr1::shared_ptr CopyStructureNodePtr; * Class that manages one or more PVStructures that holds an arbitrary subset of the fields * in another PVStructure called master. */ -class epicsShareClass PVCopy : +class epicsShareClass EPICS_DEPRECATED PVCopy : public std::tr1::enable_shared_from_this { public: diff --git a/src/copy/pvCopy.cpp b/src/copy/pvCopy.cpp index e173488..532286a 100644 --- a/src/copy/pvCopy.cpp +++ b/src/copy/pvCopy.cpp @@ -13,6 +13,9 @@ #include #include +#include +#undef EPICS_DEPRECATED +#define EPICS_DEPRECATED #define epicsExportSharedSymbols diff --git a/testApp/copy/testPVCopy.cpp b/testApp/copy/testPVCopy.cpp index 26923fb..e81fc61 100644 --- a/testApp/copy/testPVCopy.cpp +++ b/testApp/copy/testPVCopy.cpp @@ -20,6 +20,10 @@ #include #include +#include +#undef EPICS_DEPRECATED +#define EPICS_DEPRECATED + #include #include #include