diff options
| -rw-r--r-- | components/drivers/include/drivers/misc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/misc.h b/components/drivers/include/drivers/misc.h index 2b4b0a5443..8e3c8f22c2 100644 --- a/components/drivers/include/drivers/misc.h +++ b/components/drivers/include/drivers/misc.h @@ -14,11 +14,13 @@ #include <rtdef.h> #include <cpuport.h> +#ifndef RT_BITS_PER_LONG #ifdef ARCH_CPU_64BIT #define RT_BITS_PER_LONG 64 #else #define RT_BITS_PER_LONG 32 #endif +#endif #define RT_BITS_PER_LONG_LONG 64 #define RT_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) |
