From eadc3d32ce536bc5ddc620196b0e2cf76dd21ca3 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 29 Apr 2025 17:55:51 +0300 Subject: [PATCH] libweston: add C++ braces to linalg headers Forgot to add these. Looks like all public headers should have them. Fixes: e8b7ade58bf13e6b21f3711314827cc307f15181 Signed-off-by: Pekka Paalanen --- include/libweston/linalg-3.h | 8 ++++++++ include/libweston/linalg-4.h | 8 ++++++++ include/libweston/linalg-types.h | 8 ++++++++ include/libweston/linalg.h | 8 ++++++++ 4 files changed, 32 insertions(+) diff --git a/include/libweston/linalg-3.h b/include/libweston/linalg-3.h index 8a4df7e63..8990e1e9b 100644 --- a/include/libweston/linalg-3.h +++ b/include/libweston/linalg-3.h @@ -25,6 +25,10 @@ #pragma once +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -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 diff --git a/include/libweston/linalg-4.h b/include/libweston/linalg-4.h index 9b7db4d6a..3cca5e4ae 100644 --- a/include/libweston/linalg-4.h +++ b/include/libweston/linalg-4.h @@ -25,6 +25,10 @@ #pragma once +#ifdef __cplusplus +extern "C" { +#endif + #include #include @@ -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 diff --git a/include/libweston/linalg-types.h b/include/libweston/linalg-types.h index c6fb2f1c4..871928d36 100644 --- a/include/libweston/linalg-types.h +++ b/include/libweston/linalg-types.h @@ -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 diff --git a/include/libweston/linalg.h b/include/libweston/linalg.h index 8cd6bdb9d..3a2757b41 100644 --- a/include/libweston/linalg.h +++ b/include/libweston/linalg.h @@ -25,6 +25,14 @@ #pragma once +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include + +#ifdef __cplusplus +} +#endif