X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=libs%2Fsplines%2Fmath_matrix.h;h=b4427dcde922c6159953971174c4b2b595140c6c;hp=597f1d029085e9c828c330d82275f8970e8139f9;hb=42856811f2b174e37a761bfcb9fbeb8c6af2f558;hpb=62d99f889c0e98be65f779d3983109c84ce58cec diff --git a/libs/splines/math_matrix.h b/libs/splines/math_matrix.h index 597f1d02..b4427dcd 100644 --- a/libs/splines/math_matrix.h +++ b/libs/splines/math_matrix.h @@ -25,14 +25,6 @@ #include #include "math_vector.h" -#ifndef ID_INLINE -#ifdef _WIN32 -#define ID_INLINE __inline -#else -#define ID_INLINE inline -#endif -#endif - class quat_t; class angles_t; @@ -83,8 +75,8 @@ friend mat3_t SkewSymmetric( idVec3 const &src ); ID_INLINE mat3_t::mat3_t() { } -ID_INLINE mat3_t::mat3_t( float src[ 3 ][ 3 ] ) { - memcpy( mat, src, sizeof( src ) ); +ID_INLINE mat3_t::mat3_t(float src[3][3]) { + memcpy(mat, src, sizeof(float) * 3 * 3); } ID_INLINE mat3_t::mat3_t( idVec3 const &x, idVec3 const &y, idVec3 const &z ) {