diff --git a/include/ck_limits.h b/include/ck_limits.h index 29b8f13..382b296 100644 --- a/include/ck_limits.h +++ b/include/ck_limits.h @@ -26,6 +26,20 @@ #if defined(__linux__) && defined(__KERNEL__) #include + +#ifndef UINT8_MAX +#define UINT8_MAX ((u8)(~0U)) +#endif +#ifndef UINT16_MAX +#define UINT16_MAX USHRT_MAX +#endif +#ifndef UINT32_MAX +#define UINT32_MAX UINT_MAX +#endif +#ifndef UINT64_MAX +#define UINT64_MAX ULLONG_MAX +#endif + #else #include #endif /* __linux__ && __KERNEL__ */