mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-15 23:20:06 +02:00
added POCO_NO_DEPRECATED to disarm POCO_DEPRECATED macro
This commit is contained in:
@@ -177,4 +177,8 @@
|
|||||||
// #define POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX
|
// #define POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX
|
||||||
|
|
||||||
|
|
||||||
|
// Disarm POCO_DEPRECATED macro.
|
||||||
|
// #define POCO_NO_DEPRECATED
|
||||||
|
|
||||||
|
|
||||||
#endif // Foundation_Config_INCLUDED
|
#endif // Foundation_Config_INCLUDED
|
||||||
|
@@ -148,7 +148,9 @@
|
|||||||
// A macro expanding to a compiler-specific clause to
|
// A macro expanding to a compiler-specific clause to
|
||||||
// mark a class or function as deprecated.
|
// mark a class or function as deprecated.
|
||||||
//
|
//
|
||||||
#ifdef _GNUC_
|
#if defined(POCO_NO_DEPRECATED)
|
||||||
|
#define POCO_DEPRECATED
|
||||||
|
#elif defined(_GNUC_)
|
||||||
#define POCO_DEPRECATED __attribute__((deprecated))
|
#define POCO_DEPRECATED __attribute__((deprecated))
|
||||||
#elif defined(__clang__)
|
#elif defined(__clang__)
|
||||||
#define POCO_DEPRECATED __attribute__((deprecated))
|
#define POCO_DEPRECATED __attribute__((deprecated))
|
||||||
|
Reference in New Issue
Block a user