libweston: add C++ braces to linalg headers

Forgot to add these. Looks like all public headers should have them.

Fixes: e8b7ade58b

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2025-04-29 17:55:51 +03:00
parent e837179f14
commit eadc3d32ce
4 changed files with 32 additions and 0 deletions

View file

@ -25,6 +25,10 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include <math.h>
@ -156,3 +160,7 @@ weston_m3f_sub_m3f(struct weston_mat3f A, struct weston_mat3f B)
bool
weston_m3f_invert(struct weston_mat3f *out, struct weston_mat3f M);
#ifdef __cplusplus
}
#endif

View file

@ -25,6 +25,10 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include <math.h>
@ -196,3 +200,7 @@ weston_m4f_sub_m4f(struct weston_mat4f A, struct weston_mat4f B)
bool
weston_m4f_invert(struct weston_mat4f *out, struct weston_mat4f M);
#ifdef __cplusplus
}
#endif

View file

@ -25,6 +25,10 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
/** Column 3-vector */
struct weston_vec3f {
union {
@ -66,3 +70,7 @@ struct weston_mat4f {
float colmaj[4 * 4];
};
};
#ifdef __cplusplus
}
#endif

View file

@ -25,6 +25,14 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <libweston/linalg-types.h>
#include <libweston/linalg-3.h>
#include <libweston/linalg-4.h>
#ifdef __cplusplus
}
#endif