From 5b2c37f73bee2ea5b289a2424bf242e5522bf42c Mon Sep 17 00:00:00 2001 From: Kaz <87723604+not-kaz@users.noreply.github.com> Date: Sun, 9 Jun 2024 11:06:18 +0200 Subject: [PATCH] Fixed 'missing-prototypes' warnings for some vec2 funcs. Using gcc and missing-prototypes flag shows warnings for: glmc_vec2_fill, glmc_vec2_eq and glmc_vec2_eqv. Seems they were not added to call/vec2.h for some reason. This should fix the warnings. --- include/cglm/call/vec2.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/cglm/call/vec2.h b/include/cglm/call/vec2.h index 507f042e..42648872 100644 --- a/include/cglm/call/vec2.h +++ b/include/cglm/call/vec2.h @@ -17,6 +17,18 @@ CGLM_EXPORT void glmc_vec2(float * __restrict v, vec2 dest); +CGLM_EXPORT +void +glmc_vec2_fill(vec2 v, float val); + +CGLM_EXPORT +bool +glmc_vec2_eq(vec2 v, float val); + +CGLM_EXPORT +bool +glmc_vec2_eqv(vec2 a, vec2 b); + CGLM_EXPORT void glmc_vec2_copy(vec2 a, vec2 dest);