Add an extern C to raymath to prevent warnings in C++

This commit is contained in:
Jeffery Myers 2024-05-12 08:46:11 -07:00
parent a126ff8c95
commit fa25f8b36a

View File

@ -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