summaryrefslogtreecommitdiffstats
path: root/pb.h
diff options
context:
space:
mode:
Diffstat (limited to 'pb.h')
-rw-r--r--pb.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/pb.h b/pb.h
index dce8df30..72b41963 100644
--- a/pb.h
+++ b/pb.h
@@ -148,10 +148,12 @@ struct _pb_field_t {
* It has the number of bytes in the beginning, and after that an array.
* Note that actual structs used will have a different length of bytes array.
*/
-typedef struct {
+struct _pb_bytes_array_t {
size_t size;
uint8_t bytes[1];
-} pb_bytes_array_t;
+};
+
+typedef struct _pb_bytes_array_t pb_bytes_array_t;
/* This structure is used for giving the callback function.
* It is stored in the message structure and filled in by the method that