From faa262b73cb3bc92b745b70e537128c327bb6050 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 11 Oct 2015 18:41:28 -1000 Subject: [PATCH] Windows fixes --- DataSpec/DNACommon/BabeDead.hpp | 5 +++++ DataSpec/DNAMP1/MREA.cpp | 6 ++++-- DataSpec/DNAMP2/MREA.cpp | 4 ++-- DataSpec/DNAMP3/MREA.cpp | 10 +++++----- DataSpec/SpecMP1.cpp | 2 +- DataSpec/SpecMP2.cpp | 2 +- DataSpec/SpecMP3.cpp | 2 +- MathLib | 2 +- Runtime/MP1/main.cpp | 3 +++ hecl | 2 +- 10 files changed, 24 insertions(+), 14 deletions(-) diff --git a/DataSpec/DNACommon/BabeDead.hpp b/DataSpec/DNACommon/BabeDead.hpp index 77f3b7742..6b05002a4 100644 --- a/DataSpec/DNACommon/BabeDead.hpp +++ b/DataSpec/DNACommon/BabeDead.hpp @@ -3,6 +3,11 @@ #include +#ifndef _USE_MATH_DEFINES +#define _USE_MATH_DEFINES 1 +#endif +#include + namespace Retro { diff --git a/DataSpec/DNAMP1/MREA.cpp b/DataSpec/DNAMP1/MREA.cpp index 8077dc5c5..8865007cb 100644 --- a/DataSpec/DNAMP1/MREA.cpp +++ b/DataSpec/DNAMP1/MREA.cpp @@ -3,7 +3,9 @@ #include "DeafBabe.hpp" #include "../DNACommon/BabeDead.hpp" -#define _USE_MATH_DEFINES +#ifndef _USE_MATH_DEFINES +#define _USE_MATH_DEFINES 1 +#endif #include namespace Retro @@ -92,7 +94,7 @@ bool MREA::Extract(const SpecBase& dataSpec, /* Read meshes */ atUint32 curSec = 1; - for (int m=0 ; m& idx = m_secIdxs.back(); @@ -136,7 +136,7 @@ bool MREA::Extract(const SpecBase& dataSpec, atUint32 curSec = 1; std::vector surfaceCounts; surfaceCounts.reserve(head.meshCount); - for (int m=0 ; mfirst == FOURCC('GPUD')) { - for (int m=0 ; m, MaterialSet, RigPair, DNACMDL::SurfaceHeader_3> (os, drs, pakRouter, entry, dummy, true, @@ -195,7 +195,7 @@ bool MREA::Extract(const SpecBase& dataSpec, /* Skip SOBJ (SCLY) */ if (secIdxIt->first == FOURCC('SOBJ')) { - for (int l=0 ; l #endif diff --git a/hecl b/hecl index b33c31a34..7dd981997 160000 --- a/hecl +++ b/hecl @@ -1 +1 @@ -Subproject commit b33c31a34bf8f2c8d13ac923abe58da624814368 +Subproject commit 7dd98199713427ee1c998387bc4714b2898eaccb