From ea7b22b4ebe9d71f61bada13c428ec75d12acf74 Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Mon, 20 Nov 2017 13:56:23 +0100 Subject: [PATCH] Added Macro IN_LIMITS to sys/types.h tio be available globally --- core/include/sys/types.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/include/sys/types.h b/core/include/sys/types.h index 7f6a228..748d08d 100644 --- a/core/include/sys/types.h +++ b/core/include/sys/types.h @@ -2,6 +2,11 @@ #include +#if !defined(IN_LIMITS) +#define IN_LIMITS(v,min,max) ( (min<=v) && (v <= max) ) +#endif + + typedef int32_t APICALL; typedef struct {