Signed-off-by: Taras Kondratiuk <[email protected]>
---
include/odp/api/hints.h | 12 ++++++++++++
platform/linux-generic/include/odp_debug_internal.h | 19 -------------------
2 files changed, 12 insertions(+), 19 deletions(-)
diff --git a/include/odp/api/hints.h b/include/odp/api/hints.h
index a7aa90e..ebf83fc 100644
--- a/include/odp/api/hints.h
+++ b/include/odp/api/hints.h
@@ -46,6 +46,16 @@ extern "C" {
#define ODP_COLD_CODE __attribute__((__cold__))
/**
+ * Indicate deprecated variables, functions or types
+ */
+#define ODP_DEPRECATED __attribute__((__deprecated__))
+
+/**
+ * Intentionally unused variables ot functions
+ */
+#define ODP_UNUSED __attribute__((__unused__))
+
+/**
* Branch likely taken
*/
#define odp_likely(x) __builtin_expect((x), 1)
@@ -80,6 +90,8 @@ extern "C" {
#define ODP_WEAK_SYMBOL
#define ODP_HOT_CODE
#define ODP_COLD_CODE
+#define ODP_DEPRECATED
+#define ODP_UNUSED
#define odp_likely(x)
#define odp_unlikely(x)
#define odp_prefetch(x)
diff --git a/platform/linux-generic/include/odp_debug_internal.h
b/platform/linux-generic/include/odp_debug_internal.h
index 2b643eb..dec5c15 100644
--- a/platform/linux-generic/include/odp_debug_internal.h
+++ b/platform/linux-generic/include/odp_debug_internal.h
@@ -29,25 +29,6 @@ extern "C" {
* @{
*/
-#ifdef __GNUC__
-
-/**
- * Indicate deprecated variables, functions or types
- */
-#define ODP_DEPRECATED __attribute__((__deprecated__))
-
-/**
- * Intentionally unused variables ot functions
- */
-#define ODP_UNUSED __attribute__((__unused__))
-
-#else
-
-#define ODP_DEPRECATED
-#define ODP_UNUSED
-
-#endif
-
/**
* Runtime assertion-macro - aborts if 'cond' is false.
*/
--
1.9.1
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp