genl: Include <stddef.h> for size_t typedef.
PATCH 1/1 genl: Include <stddef.h> for size_t typedef.
The l_genl_msg_append_attrv() prototype in the ELL genl.h header uses the size_t typedef. Explicitly include <stddef.h> to pull in the size_t typedef declaration in case the user directly includes <ell/genl.h> without, or prior to, other headers that would have done the same. This addresses an "unknown type name" compile-time error in such a case.
--- ell/genl.h | 1 + 1 file changed, 1 insertion(+)
ell/genl.h +1 -0
@@ -24,6 +24,7 @@#define __ELL_GENL_H#include <stdbool.h> +#include <stddef.h> #include <stdint.h> #ifdef __cplusplus
Signature · 1 line
2.17.1
Denis Kenzior
AppliedHi Ossama,
Quoted 9 lines · Ossama Othman
The
l_genl_msg_append_attrv()prototype in the ELLgenl.hheader uses thesize_ttypedef. Explicitly include <stddef.h> to pull in thesize_ttypedef declaration in case the user directly includes <ell/genl.h> without, or prior to, other headers that would have done the same. This addresses an "unknown type name" compile-time error in such a case.--- ell/genl.h | 1 + 1 file changed, 1 insertion(+)
Applied, thanks.
Regards,
-Denis