From a524de4dc97a16f5cd6d932b0facd3841d0c0c45 Mon Sep 17 00:00:00 2001
From: Florent Lamiraux <florent@laas.fr>
Date: Fri, 20 Dec 2013 21:53:40 +0100
Subject: [PATCH] Add support for Clang compiler in deprecated.h

---
 include/fcl/deprecated.h | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/include/fcl/deprecated.h b/include/fcl/deprecated.h
index c7602eab..16c74e83 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
-- 
GitLab