Skip to contentSkip to conversation

genl: Include <stddef.h> for size_t typedef.

PATCH Applied Ossama Othman 2 participants 2 messages Jun 6, 2018 – Jun 7, 2018

lore
Share & tools
lore
#0 lore raw

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
index bddf1d4..ff5687c 100644
@@ -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
#1 lore raw

Hi Ossama,

Quoted 9 lines · Ossama Othman

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(+)

Applied, thanks.

Regards,
-Denis