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