Skip to content

Commit ceb7af7

Browse files
feliwirFighter19
andcommitted
[Compat] Fix ZH WWMath compilation
Co-authored-by: Patrick Zacharias <[email protected]>
1 parent 2b15bb6 commit ceb7af7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

GeneralsMD/Code/Libraries/Source/WWVegas/WWMath/matrix3d.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@
6565
#include "matrix3.h"
6666
#include "matrix4.h"
6767
#include "quat.h"
68+
#ifdef _WIN32
6869
#include "d3dx8math.h"
70+
#endif
6971

7072
// some static matrices which are sometimes useful
7173
const Matrix3D Matrix3D::Identity
@@ -520,7 +522,9 @@ void Matrix3D::Get_Inverse(Matrix3D & inv) const
520522
Matrix4x4 mat4Inv;
521523

522524
float det;
525+
#ifdef _WIN32
523526
D3DXMatrixInverse((D3DXMATRIX *)&mat4Inv, &det, (D3DXMATRIX*)&mat4);
527+
#endif
524528

525529
inv.Row[0][0]=mat4Inv[0][0];
526530
inv.Row[0][1]=mat4Inv[0][1];

0 commit comments

Comments
 (0)