diff --git a/include/pocketpy/common/str.h b/include/pocketpy/common/str.h index d11a2539..9f12b56c 100644 --- a/include/pocketpy/common/str.h +++ b/include/pocketpy/common/str.h @@ -4,6 +4,8 @@ #include "pocketpy/common/utils.h" #include "pocketpy/pocketpy.h" +#include + /* string */ typedef struct c11_string{ // int size | char[] | '\0' diff --git a/include/pocketpy/linalg.h b/include/pocketpy/linalg.h index b25b39fa..3b5d1893 100644 --- a/include/pocketpy/linalg.h +++ b/include/pocketpy/linalg.h @@ -22,15 +22,13 @@ typedef struct c11_vec3 { float z; } c11_vec3; -typedef struct c11_mat3x3 { - union { - struct { - float _11, _12, _13; - float _21, _22, _23; - float _31, _32, _33; - }; - - float m[3][3]; - float data[9]; +typedef union c11_mat3x3 { + struct { + float _11, _12, _13; + float _21, _22, _23; + float _31, _32, _33; }; + + float m[3][3]; + float data[9]; } c11_mat3x3;