diff --git a/include/call/cglmc-affine.h b/include/call/cglmc-affine.h index 7329a22..3d462ee 100644 --- a/include/call/cglmc-affine.h +++ b/include/call/cglmc-affine.h @@ -7,6 +7,9 @@ #ifndef cglmc_affine_h #define cglmc_affine_h +#ifdef __cplusplus +extern "C" { +#endif #include "../cglm.h" @@ -82,4 +85,7 @@ CGLM_EXPORT void glmc_decompose(mat4 m, vec4 t, mat4 r, vec3 s); +#ifdef __cplusplus +} +#endif #endif /* cglmc_affine_h */ diff --git a/include/call/cglmc-cam.h b/include/call/cglmc-cam.h index cf688ec..03e066a 100644 --- a/include/call/cglmc-cam.h +++ b/include/call/cglmc-cam.h @@ -7,6 +7,9 @@ #ifndef cglmc_cam_h #define cglmc_cam_h +#ifdef __cplusplus +extern "C" { +#endif #include "../cglm.h" @@ -45,4 +48,7 @@ glmc_lookat(vec3 eye, vec3 up, mat4 dest); +#ifdef __cplusplus +} +#endif #endif /* cglmc_cam_h */ diff --git a/include/call/cglmc-euler.h b/include/call/cglmc-euler.h index 6a3a496..0aea082 100644 --- a/include/call/cglmc-euler.h +++ b/include/call/cglmc-euler.h @@ -7,6 +7,9 @@ #ifndef glmc_euler_h #define glmc_euler_h +#ifdef __cplusplus +extern "C" { +#endif #include "../cglm.h" @@ -42,4 +45,7 @@ CGLM_EXPORT void glmc_euler_by_order(vec3 angles, glm_euler_sq axis, mat4 dest); +#ifdef __cplusplus +} +#endif #endif /* glmc_euler_h */ diff --git a/include/call/cglmc-io.h b/include/call/cglmc-io.h index 6a36a53..b6c50f6 100644 --- a/include/call/cglmc-io.h +++ b/include/call/cglmc-io.h @@ -7,6 +7,9 @@ #ifndef cglmc_io_h #define cglmc_io_h +#ifdef __cplusplus +extern "C" { +#endif #include "../cglm.h" @@ -35,4 +38,7 @@ void glmc_versor_print(versor vec, FILE * __restrict ostream); +#ifdef __cplusplus +} +#endif #endif /* cglmc_io_h */ diff --git a/include/call/cglmc-mat.h b/include/call/cglmc-mat.h index 3ec3bd8..d800d38 100644 --- a/include/call/cglmc-mat.h +++ b/include/call/cglmc-mat.h @@ -7,6 +7,9 @@ #ifndef cglmc_mat_h #define cglmc_mat_h +#ifdef __cplusplus +extern "C" { +#endif #include "../cglm.h" @@ -78,4 +81,7 @@ CGLM_EXPORT void glmc_mat4_swap_row(mat4 mat, int row1, int row2); +#ifdef __cplusplus +} +#endif #endif /* cglmc_mat_h */ diff --git a/include/call/cglmc-mat3.h b/include/call/cglmc-mat3.h index de07ade..40049ec 100644 --- a/include/call/cglmc-mat3.h +++ b/include/call/cglmc-mat3.h @@ -7,6 +7,9 @@ #ifndef cglmc_mat3_h #define cglmc_mat3_h +#ifdef __cplusplus +extern "C" { +#endif #include "../cglm.h" @@ -50,4 +53,7 @@ CGLM_EXPORT void glmc_mat3_swap_row(mat3 mat, int row1, int row2); +#ifdef __cplusplus +} +#endif #endif /* cglmc_mat3_h */ diff --git a/include/call/cglmc-quat.h b/include/call/cglmc-quat.h index f7e6201..0dff506 100644 --- a/include/call/cglmc-quat.h +++ b/include/call/cglmc-quat.h @@ -7,6 +7,9 @@ #ifndef cglmc_quat_h #define cglmc_quat_h +#ifdef __cplusplus +extern "C" { +#endif #include "../cglm.h" @@ -55,4 +58,7 @@ glmc_quat_slerp(versor q, float t, versor dest); +#ifdef __cplusplus +} +#endif #endif /* cglmc_quat_h */ diff --git a/include/call/cglmc-vec.h b/include/call/cglmc-vec.h index cc3c6d2..b959092 100644 --- a/include/call/cglmc-vec.h +++ b/include/call/cglmc-vec.h @@ -7,6 +7,9 @@ #ifndef cglm_vec_h #define cglm_vec_h +#ifdef __cplusplus +extern "C" { +#endif #include "../cglm.h" @@ -114,4 +117,7 @@ CGLM_EXPORT void glmc_vec_proj(vec3 a, vec3 b, vec3 dest); +#ifdef __cplusplus +} +#endif #endif /* cglm_vec_h */ diff --git a/include/cglm-call.h b/include/cglm-call.h index a92b18a..58e7ce8 100644 --- a/include/cglm-call.h +++ b/include/cglm-call.h @@ -7,6 +7,9 @@ #ifndef cglm_call_h #define cglm_call_h +#ifdef __cplusplus +extern "C" { +#endif #include "cglm.h" #include "call/cglmc-vec.h" @@ -18,4 +21,7 @@ #include "call/cglmc-euler.h" #include "call/cglmc-io.h" +#ifdef __cplusplus +} +#endif #endif /* cglm_call_h */