summaryrefslogtreecommitdiffhomepage
path: root/src/raymath.h
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2024-05-12 15:36:23 -0700
committerGitHub <[email protected]>2024-05-13 00:36:23 +0200
commit3d885ef9195825b03c9657f136293077e61ee503 (patch)
tree1aa86b52e70059ced817dd33a34f80fdeb486866 /src/raymath.h
parent3f13f7921dc9eed92e450d0cc25e43241213db92 (diff)
downloadraylib-3d885ef9195825b03c9657f136293077e61ee503.tar.gz
raylib-3d885ef9195825b03c9657f136293077e61ee503.zip
[raymath] Add extern "C" to raymath header for C++ (#3978)
* Update raylib_api.* by CI * Add an extern C to raymath to prevent warnings in C++ --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/raymath.h')
-rw-r--r--src/raymath.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/raymath.h b/src/raymath.h
index 19625f10..7a2f0929 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -77,6 +77,11 @@
#endif
#endif
+
+#if defined(__cplusplus)
+extern "C" { // Prevents name mangling of functions
+#endif
+
//----------------------------------------------------------------------------------
// Defines and Macros
//----------------------------------------------------------------------------------
@@ -2523,5 +2528,8 @@ RMAPI int QuaternionEquals(Quaternion p, Quaternion q)
return result;
}
+#if defined(__cplusplus)
+}
+#endif
#endif // RAYMATH_H