mirror of
https://github.com/pocoproject/poco.git
synced 2025-12-11 12:07:23 +01:00
added POCO_DEPRECATED macro
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user