From 20506ead3c5909edaadd2f7dc2aba4a5b98b223e Mon Sep 17 00:00:00 2001 From: Jared Duke Date: Thu, 24 Jan 2013 19:44:08 -0800 Subject: [PATCH 1/2] Update code/FBXConverter.cpp Fixing VC10 build. --- code/FBXConverter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/FBXConverter.cpp b/code/FBXConverter.cpp index 607fec415..e91e61c28 100644 --- a/code/FBXConverter.cpp +++ b/code/FBXConverter.cpp @@ -45,6 +45,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef ASSIMP_BUILD_NO_FBX_IMPORTER +#include #include #include "FBXParser.h" From 528c7c773774b7f16c0f26c1b51aac2f6ac96919 Mon Sep 17 00:00:00 2001 From: Jared Duke Date: Thu, 24 Jan 2013 19:45:42 -0800 Subject: [PATCH 2/2] Update code/STEPFileEncoding.cpp Fixing Boost 1.48 build. --- code/STEPFileEncoding.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/STEPFileEncoding.cpp b/code/STEPFileEncoding.cpp index cb546275f..ff13bbde6 100644 --- a/code/STEPFileEncoding.cpp +++ b/code/STEPFileEncoding.cpp @@ -354,7 +354,7 @@ bool STEP::StringToUTF8(std::string& s) } const size_t count = (j-basei)/4; - boost::scoped_array src = boost::scoped_array(new UTF16[count]); + boost::scoped_array src(new UTF16[count]); const char* cur = s.c_str() + basei; for (size_t k = 0; k < count; ++k, cur += 4) { @@ -363,7 +363,7 @@ bool STEP::StringToUTF8(std::string& s) } const size_t dcount = count * 3; // this is enough to hold all possible outputs - boost::scoped_array dest = boost::scoped_array(new UTF8[dcount]); + boost::scoped_array dest(new UTF8[dcount]); const UTF16* srct = src.get(); UTF8* destt = dest.get(); @@ -387,7 +387,7 @@ bool STEP::StringToUTF8(std::string& s) } const size_t count = (j-basei)/8; - boost::scoped_array src = boost::scoped_array(new UTF32[count]); + boost::scoped_array src(new UTF32[count]); const char* cur = s.c_str() + basei; for (size_t k = 0; k < count; ++k, cur += 8) { @@ -398,7 +398,7 @@ bool STEP::StringToUTF8(std::string& s) } const size_t dcount = count * 5; // this is enough to hold all possible outputs - boost::scoped_array dest = boost::scoped_array(new UTF8[dcount]); + boost::scoped_array dest(new UTF8[dcount]); const UTF32* srct = src.get(); UTF8* destt = dest.get();