Explorar el Código
[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>
pull/3981/head
Jeffery Myers
hace 9 meses
cometido por
GitHub
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG: B5690EEEBB952194
Se han
modificado 1 ficheros con
8 adiciones y
0 borrados
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