diff --git a/libretro-common/include/gfx/math/vector_2.h b/libretro-common/include/gfx/math/vector_2.h index 6a79bfbc9c..430652bbb1 100644 --- a/libretro-common/include/gfx/math/vector_2.h +++ b/libretro-common/include/gfx/math/vector_2.h @@ -25,6 +25,8 @@ #include +typedef float vec2_t[2]; + float vec2_dot(const float *a, const float *b); float vec2_cross(const float *a, const float *b) ; diff --git a/libretro-common/include/gfx/math/vector_3.h b/libretro-common/include/gfx/math/vector_3.h index cb94a9fc71..022401122d 100644 --- a/libretro-common/include/gfx/math/vector_3.h +++ b/libretro-common/include/gfx/math/vector_3.h @@ -25,6 +25,8 @@ #include +typedef float vec3_t[3]; + float vec3_dot(const float *a, const float *b); void vec3_cross(float* dst, const float *a, const float *b);