added POCO_DEPRECATED macro

This commit is contained in:
Günter Obiltschnig
2017-09-08 11:51:17 +02:00
parent 39e54d714e
commit 522f743b86

View File

@@ -142,6 +142,23 @@
#define POCO_DO_JOIN2(X, Y) X##Y
//
// POCO_DEPRECATED
//
// A macro expanding to a compiler-specific clause to
// mark a class or function as deprecated.
//
#ifdef _GNUC_
#define POCO_DEPRECATED __attribute__((deprecated))
#elif defined(__clang__)
#define POCO_DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER)
#define POCO_DEPRECATED __declspec(deprecated)
#else
#define POCO_DEPRECATED
#endif
//
// Pull in basic definitions
//