mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 04:40:07 +01:00
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:
parent
e837179f14
commit
eadc3d32ce
4 changed files with 32 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue