Skip to content

Commit 1e8b8ad

Browse files
feliwirFighter19
andcommitted
[Compat] Fix GEN WWMath compilation
Co-authored-by: Patrick Zacharias <1475802+Fighter19@users.noreply.github.com>
1 parent 0effd20 commit 1e8b8ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
#include "matrix3.h"
6363
#include "matrix4.h"
6464
#include "quat.h"
65+
#ifdef _WIN32
6566
#include "d3dx8math.h"
67+
#endif
6668

6769
// some static matrices which are sometimes useful
6870
const Matrix3D Matrix3D::Identity
@@ -517,7 +519,9 @@ void Matrix3D::Get_Inverse(Matrix3D & inv) const
517519
Matrix4 mat4Inv;
518520

519521
float det;
522+
#ifdef _WIN32
520523
D3DXMatrixInverse((D3DXMATRIX *)&mat4Inv, &det, (D3DXMATRIX*)&mat4);
524+
#endif
521525

522526
inv.Row[0][0]=mat4Inv[0][0];
523527
inv.Row[0][1]=mat4Inv[0][1];

Generals/Code/Libraries/Source/WWVegas/WWSaveLoad/pointerremap.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@
4343
#ifndef POINTERREMAP_H
4444
#define POINTERREMAP_H
4545

46-
#ifdef _UNIX
47-
#include "osdep/osdep.h"
48-
#endif
49-
5046
#include "always.h"
5147
#include "Vector.H"
5248

0 commit comments

Comments
 (0)