diff --git a/sys/include/bitfield.h b/sys/include/bitfield.h index 02d117ff63a55599c7ac1d3b55c057f3cfd4b72e..4d13a3b4cd65ae2fe162c5c78633f77876bcd08f 100644 --- a/sys/include/bitfield.h +++ b/sys/include/bitfield.h @@ -27,6 +27,7 @@ #include <stdint.h> #include <stdbool.h> +#include <stddef.h> #ifdef __cplusplus extern "C" { @@ -38,7 +39,7 @@ extern "C" { * @note SIZE should be a constant expression. This avoids variable length * arrays. */ -#define BITFIELD(NAME, SIZE) (uint8_t NAME[((SIZE) + 7) / 8]) +#define BITFIELD(NAME, SIZE) uint8_t NAME[((SIZE) + 7) / 8] /** * @brief Set the bit to 1