Ver código fonte

include/starpu_util.h: define STARPU_DEPRECATED attribute

Nathalie Furmento 13 anos atrás
pai
commit
59ff8f7e87
1 arquivos alterados com 6 adições e 1 exclusões
  1. 6 1
      include/starpu_util.h

+ 6 - 1
include/starpu_util.h

@@ -47,7 +47,6 @@ extern "C"
 
 #define STARPU_ABORT()		abort()
 
-
 #ifdef __GNUC__
 #  define STARPU_UNLIKELY(expr)          (__builtin_expect(!!(expr),0))
 #  define STARPU_LIKELY(expr)            (__builtin_expect(!!(expr),1))
@@ -60,6 +59,12 @@ extern "C"
 #  define STARPU_ATTRIBUTE_INTERNAL
 #endif
 
+#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
+#define STARPU_DEPRECATED  __attribute__((__deprecated__))
+#else
+#define STARPU_DEPRECATED
+#endif /* __GNUC__ */
+
 #if defined(__i386__) || defined(__x86_64__)
 
 static __inline unsigned starpu_cmpxchg(unsigned *ptr, unsigned old, unsigned next)