Fix deprecation message w/ gcc < 4.5

Apparently deprecated(msg) is newer than I thought.
This commit is contained in:
Michael Davidsaver
2018-11-26 12:05:34 -08:00
parent da8f3d6cc7
commit 00c62cbd67

View File

@@ -23,12 +23,14 @@
#include <shareLib.h>
#if !defined(PVD_INTERNAL) && __GNUC__ > 2
#if defined(PVD_INTERNAL)
# define PVD_DEPRECATED(msg)
#elif __GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 5
# define PVD_DEPRECATED(msg) __attribute__((deprecated(msg)))
#else
# define PVD_DEPRECATED(msg)
# define PVD_DEPRECATED(msg) EPICS_DEPRECATED
#endif
#define PVD_DEPRECATED_52 PVD_DEPRECATED("https://github.com/epics-base/pvDataCPP/issues/52")
#define PVD_DEPRECATED_52 PVD_DEPRECATED("See https://github.com/epics-base/pvDataCPP/issues/52")
/* C++11 keywords
@code