diff --git a/include/fcl/deprecated.h b/include/fcl/deprecated.h index c7602eabe415d9fbd0bb7388465d417085ed6f99..16c74e83b60c9da829e9189e79ab9c0d58db4b25 100644 --- a/include/fcl/deprecated.h +++ b/include/fcl/deprecated.h @@ -55,13 +55,14 @@ // compilers support it. # ifdef __GNUC__ # define FCL_DEPRECATED __attribute__ ((deprecated)) +# elif defined _MSC_VER +# define FCL_DEPRECATED __declspec (deprecated) +# elif defined(clang) +# define FL_DEPRECATED \ + attribute((deprecated("FCL: Use of this method is deprecated"))) # else -# ifdef _MSC_VER -# define FCL_DEPRECATED __declspec (deprecated) -# else // If the compiler is not recognized, drop the feature. -# define FCL_DEPRECATED /* nothing */ -# endif // __MSVC__ -# endif // __GNUC__ +# define FCL_DEPRECATED /* nothing */ +# endif #endif //! FCL_DEPRECATED_HH