aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/odp/api/abi-default/timer.h2
-rw-r--r--platform/linux-generic/include-abi/odp/api/abi/timer.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/odp/api/abi-default/timer.h b/include/odp/api/abi-default/timer.h
index 21a8961d2..76f3a5b93 100644
--- a/include/odp/api/abi-default/timer.h
+++ b/include/odp/api/abi-default/timer.h
@@ -31,7 +31,7 @@ struct timer_pool_s; /**< Forward declaration */
typedef struct timer_pool_s *odp_timer_pool_t;
-#define ODP_TIMER_POOL_INVALID NULL
+#define ODP_TIMER_POOL_INVALID ((odp_timer_pool_t)0)
#define ODP_TIMER_POOL_NAME_LEN 32
diff --git a/platform/linux-generic/include-abi/odp/api/abi/timer.h b/platform/linux-generic/include-abi/odp/api/abi/timer.h
index 49752df7d..c9e415ec5 100644
--- a/platform/linux-generic/include-abi/odp/api/abi/timer.h
+++ b/platform/linux-generic/include-abi/odp/api/abi/timer.h
@@ -28,7 +28,7 @@ struct timer_pool_s; /**< Forward declaration */
typedef struct timer_pool_s *odp_timer_pool_t;
-#define ODP_TIMER_POOL_INVALID NULL
+#define ODP_TIMER_POOL_INVALID _odp_cast_scalar(odp_timer_pool_t, 0)
#define ODP_TIMER_POOL_NAME_LEN 32