C++ and C compiling errors depending on installed compilers. Used __restrict to allow GCC extension to work.

This commit is contained in:
Thompson Lee 2016-08-04 22:35:13 -04:00
parent 004aa86e16
commit dd546051dc
2 changed files with 2 additions and 2 deletions

View File

@ -296,7 +296,7 @@ void Mtx_Identity(C3D_Mtx* out);
* @param[in] a Multiplicand
* @param[in] b Multiplier
*/
void Mtx_Multiply(C3D_Mtx* restrict out, const C3D_Mtx* a, const C3D_Mtx* b);
void Mtx_Multiply(C3D_Mtx* __restrict out, const C3D_Mtx* a, const C3D_Mtx* b);
/**
* @brief Inverse a matrix

View File

@ -1,6 +1,6 @@
#include <c3d/maths.h>
void Mtx_Multiply(C3D_Mtx* restrict out, const C3D_Mtx* a, const C3D_Mtx* b)
void Mtx_Multiply(C3D_Mtx* __restrict out, const C3D_Mtx* a, const C3D_Mtx* b)
{
// http://www.wolframalpha.com/input/?i={{a,b,c,d},{e,f,g,h},{i,j,k,l},{m,n,o,p}}{{α,β,γ,δ},{ε,θ,ι,κ},{λ,μ,ν,ξ},{ο,π,ρ,σ}}
int i, j;