Skip to content
Snippets Groups Projects
Commit a524de4d authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Add support for Clang compiler in deprecated.h

parent a916ddfd
No related branches found
No related tags found
No related merge requests found
...@@ -55,13 +55,14 @@ ...@@ -55,13 +55,14 @@
// compilers support it. // compilers support it.
# ifdef __GNUC__ # ifdef __GNUC__
# define FCL_DEPRECATED __attribute__ ((deprecated)) # 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 # else
# ifdef _MSC_VER
# define FCL_DEPRECATED __declspec (deprecated)
# else
// If the compiler is not recognized, drop the feature. // If the compiler is not recognized, drop the feature.
# define FCL_DEPRECATED /* nothing */ # define FCL_DEPRECATED /* nothing */
# endif // __MSVC__ # endif
# endif // __GNUC__
#endif //! FCL_DEPRECATED_HH #endif //! FCL_DEPRECATED_HH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment