diff --git a/src/common/compiler.hpp b/src/common/compiler.hpp index b2d85f2de0..4547974d0b 100644 --- a/src/common/compiler.hpp +++ b/src/common/compiler.hpp @@ -75,10 +75,13 @@ do { \ */ #if defined __GNUC__ # define BITPIT_DEPRECATED(func) func __attribute__ ((deprecated)) +# define BITPIT_DEPRECATED_FOR(func, replacement) func __attribute__ ((deprecated(" Use " #replacement))) #elif defined __clang__ # define BITPIT_DEPRECATED(func) func __attribute__ ((deprecated)) +# define BITPIT_DEPRECATED_FOR(func, replacement) func __attribute__ ((deprecated(" Use " #replacement))) #elif defined(_MSC_VER) #define BITPIT_DEPRECATED(func) __declspec(deprecated) func + #define BITPIT_DEPRECATED_FOR(func), replacement __declspec(deprecated(" Use " #replacement)) func #else # pragma message("WARNING: You need to implement DEPRECATED for this compiler") # define BITPIT_DEPRECATED(func) func