Use the EPICS_DEPRECATED macro from Base.

Neither USAGE_DEPRECATED nor USAGE_ERROR are currently used
in the V4 code-base.
This commit is contained in:
Andrew Johnson
2016-02-05 14:30:37 -06:00
parent 378def0a58
commit fd1fe53b49

View File

@@ -33,11 +33,11 @@
typedef class std::ios std::ios_base;
#endif
#define USAGE_DEPRECATED EPICS_DEPRECATED
#if defined(__GNUC__) && !(defined(vxWorks) && !defined(_WRS_VXWORKS_MAJOR))
#define USAGE_DEPRECATED __attribute__((deprecated))
#define USAGE_ERROR(MSG) __attribute__((error(MSG)))
#else
#define USAGE_DEPRECATED
#define USAGE_ERROR(MSG) { throw std::runtime_error(MSG); }
#endif