220cd92
diff -ruN assimp--3.0.1270-source-only/CMakeLists.txt assimp--3.0.1270-source-only-fedora/CMakeLists.txt
220cd92
--- assimp--3.0.1270-source-only/CMakeLists.txt	2012-07-07 18:15:42.000000000 -0400
ad9bcd1
+++ assimp--3.0.1270-source-only-fedora/CMakeLists.txt	2013-05-28 22:51:02.968721353 -0400
ad9bcd1
@@ -117,6 +117,36 @@
220cd92
 	PKG_CHECK_MODULES(UNZIP minizip)
220cd92
 endif (PKG_CONFIG_FOUND)
220cd92
 
220cd92
+# Search for irrXML
220cd92
+FIND_LIBRARY(IRRXML_LIB IrrXML HINTS ${IRRXML_LIB_PATH})
220cd92
+FIND_FILE(IRRXML_H irrXML.h PATHS ${IRRXML_INCLUDE_PATH})
220cd92
+IF(IRRXML_LIB AND IRRXML_H)
220cd92
+  message (STATUS "Found External IrrXML")
220cd92
+  set(HAVE_IRRXML true)
220cd92
+ELSE (IRRXML_LIB AND IRRXML_H)
220cd92
+  SET(HAVE_IRRXML false)
220cd92
+ENDIF(IRRXML_LIB AND IRRXML_H)
220cd92
+
220cd92
+# Search for poly2tri
220cd92
+FIND_LIBRARY(POLY2TRI_LIB poly2tri HINTS ${POLY2TRI_LIB_PATH})
220cd92
+FIND_FILE(POLY2TRI_H poly2tri.h PATHS ${POLY2TRI_INCLUDE_PATH})
220cd92
+IF (POLY2TRI_LIB AND POLY2TRI_H)
220cd92
+  message(status "Found External poly2tri")
220cd92
+  SET(HAVE_POLY2TRI true)
220cd92
+ELSE(POLY2TRI_LIB AND POLY2TRI_H)
220cd92
+  SET(HAVE_POLY2TRI false)
220cd92
+ENDIF(POLY2TRI_LIB AND POLY2TRI_H)
220cd92
+
ad9bcd1
+# Search for clipper
ad9bcd1
+FIND_LIBRARY(CLIPPER_LIB polyclipping HINTS ${CLIPPER_LIB_PATH})
ad9bcd1
+FIND_FILE(CLIPPER_H clipper.hpp PATHS ${CLIPPER_INCLUDE_PATH})
ad9bcd1
+IF (CLIPPER_LIB AND CLIPPER_H)
ad9bcd1
+  message(status "Found External clipper")
ad9bcd1
+  SET(HAVE_CLIPPER true)
ad9bcd1
+ELSE(CLIPPER_LIB AND CLIPPER_H)
ad9bcd1
+  SET(HAVE_CLIPPER false)
ad9bcd1
+ENDIF(CLIPPER_LIB AND CLIPPER_H)
220cd92
+
220cd92
 IF ( NO_EXPORT )
220cd92
 	ADD_DEFINITIONS( -DASSIMP_BUILD_NO_EXPORT)
220cd92
 	MESSAGE( STATUS "Build an import-only version of Assimp." )
220cd92
diff -ruN assimp--3.0.1270-source-only/code/ACLoader.cpp assimp--3.0.1270-source-only-fedora/code/ACLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/ACLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/ACLoader.cpp	2013-05-01 19:28:57.600184042 -0400
220cd92
@@ -49,7 +49,7 @@
220cd92
 // internal headers
220cd92
 #include "ACLoader.h"
220cd92
 #include "ParsingUtils.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "Subdivision.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/ASELoader.cpp assimp--3.0.1270-source-only-fedora/code/ASELoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/ASELoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/ASELoader.cpp	2013-05-01 19:28:57.604184199 -0400
220cd92
@@ -53,7 +53,7 @@
220cd92
 #include "TargetAnimation.h"
220cd92
 
220cd92
 // utilities
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
 using namespace Assimp::ASE;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/ASEParser.cpp assimp--3.0.1270-source-only-fedora/code/ASEParser.cpp
220cd92
--- assimp--3.0.1270-source-only/code/ASEParser.cpp	2012-02-03 05:38:32.000000000 -0500
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/ASEParser.cpp	2013-05-01 19:28:57.609184395 -0400
220cd92
@@ -49,7 +49,7 @@
220cd92
 #include "TextureTransform.h"
220cd92
 #include "ASELoader.h"
220cd92
 #include "MaterialSystem.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
 using namespace Assimp::ASE;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/BlenderDNA.cpp assimp--3.0.1270-source-only-fedora/code/BlenderDNA.cpp
220cd92
--- assimp--3.0.1270-source-only/code/BlenderDNA.cpp	2012-02-03 05:38:32.000000000 -0500
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/BlenderDNA.cpp	2013-05-01 19:28:57.616184669 -0400
220cd92
@@ -47,7 +47,7 @@
220cd92
 #ifndef ASSIMP_BUILD_NO_BLEND_IMPORTER
220cd92
 #include "BlenderDNA.h"
220cd92
 #include "StreamReader.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
 using namespace Assimp::Blender;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/BVHLoader.cpp assimp--3.0.1270-source-only-fedora/code/BVHLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/BVHLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/BVHLoader.cpp	2013-05-01 19:28:57.623184944 -0400
220cd92
@@ -44,7 +44,7 @@
220cd92
 #ifndef ASSIMP_BUILD_NO_BVH_IMPORTER
220cd92
 
220cd92
 #include "BVHLoader.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "SkeletonMeshBuilder.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/CMakeLists.txt assimp--3.0.1270-source-only-fedora/code/CMakeLists.txt
220cd92
--- assimp--3.0.1270-source-only/code/CMakeLists.txt	2012-06-21 20:38:10.000000000 -0400
ad9bcd1
+++ assimp--3.0.1270-source-only-fedora/code/CMakeLists.txt	2013-05-29 21:50:50.883117497 -0400
220cd92
@@ -88,7 +88,7 @@
220cd92
 SOURCE_GROUP(Logging FILES ${Logging_SRCS})
220cd92
 
220cd92
 SET( Common_SRCS
220cd92
-	fast_atof.h
220cd92
+	fast_atof_assimp.h
220cd92
 	qnan.h
220cd92
 	BaseImporter.cpp
220cd92
 	BaseImporter.h
ad9bcd1
@@ -533,12 +533,15 @@
ad9bcd1
 )
ad9bcd1
 SOURCE_GROUP( ConvertUTF FILES ${ConvertUTF_SRCS})
ad9bcd1
 
ad9bcd1
+if (NOT HAVE_CLIPPER)
ad9bcd1
 SET( Clipper_SRCS 
ad9bcd1
 	../contrib/clipper/clipper.hpp
ad9bcd1
 	../contrib/clipper/clipper.cpp
ad9bcd1
 )
ad9bcd1
 SOURCE_GROUP( Clipper FILES ${Clipper_SRCS})
ad9bcd1
-
ad9bcd1
+else (NOT HAVE_CLIPPER)
ad9bcd1
+  SET(Clipper_SRCS "")
ad9bcd1
+endif(NOT HAVE_CLIPPER)
ad9bcd1
 
ad9bcd1
 SET( Poly2Tri_SRCS 
ad9bcd1
 	../contrib/poly2tri/poly2tri/common/shapes.cc
ad9bcd1
@@ -633,11 +636,8 @@
220cd92
 	${XGL_SRCS}
220cd92
 	
220cd92
 	# Third-party libraries
220cd92
-	${IrrXML_SRCS}
220cd92
 	${ConvertUTF_SRCS}
220cd92
-	${unzip_compile_SRCS}
220cd92
-	${Poly2Tri_SRCS}
ad9bcd1
-	${Clipper_SRCS}
ad9bcd1
+        ${Clipper_SRCS}
220cd92
 	# Necessary to show the headers in the project when using the VC++ generator:
220cd92
 	${Boost_SRCS}
ad9bcd1
 
ed7b020
@@ -670,6 +670,26 @@
220cd92
 	INCLUDE_DIRECTORIES("../contrib/unzip")
220cd92
 endif (UNZIP_FOUND)
220cd92
 
220cd92
+if (HAVE_IRRXML)
220cd92
+  INCLUDE_DIRECTORIES(${IRRXML_INCLUDE_PATH})
220cd92
+  TARGET_LINK_LIBRARIES(assimp ${IRRXML_LIB})
220cd92
+else (HAVE_IRRXML)
220cd92
+  INCLUDE_DIRECTORIES("../contrib/irrXML")
220cd92
+endif (HAVE_IRRXML)
220cd92
+
220cd92
+if (HAVE_POLY2TRI)
220cd92
+  INCLUDE_DIRECTORIES(${POLY2TRI_INCLUDE_PATH})
220cd92
+  TARGET_LINK_LIBRARIES(assimp ${POLY2TRI_LIB})
220cd92
+endif(HAVE_POLY2TRI)
220cd92
+
ad9bcd1
+if (HAVE_CLIPPER)
ad9bcd1
+  INCLUDE_DIRECTORIES(${CLIPPER_INCLUDE_PATH})
ad9bcd1
+  TARGET_LINK_LIBRARIES(assimp ${CLIPPER_LIB})
ad9bcd1
+else (HAVE_CLIPPER)
ad9bcd1
+  INCLUDE_DIRECTORIES(../contrib/clipper)
ad9bcd1
+endif(HAVE_CLIPPER)
ad9bcd1
+
ad9bcd1
+
220cd92
 INSTALL( TARGETS assimp DESTINATION ${LIB_INSTALL_DIR} COMPONENT ${LIBASSIMP_COMPONENT})
ed7b020
 INSTALL( FILES ${PUBLIC_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/assimp COMPONENT assimp-dev)
ed7b020
 INSTALL( FILES ${COMPILER_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/assimp/Compiler COMPONENT assimp-dev)
220cd92
diff -ruN assimp--3.0.1270-source-only/code/COBLoader.cpp assimp--3.0.1270-source-only-fedora/code/COBLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/COBLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/COBLoader.cpp	2013-05-01 19:28:57.627185100 -0400
220cd92
@@ -49,7 +49,7 @@
220cd92
 
220cd92
 #include "StreamReader.h"
220cd92
 #include "ParsingUtils.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 #include "LineSplitter.h"
220cd92
 #include "TinyFormatter.h"
220cd92
diff -ruN assimp--3.0.1270-source-only/code/ColladaLoader.cpp assimp--3.0.1270-source-only-fedora/code/ColladaLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/ColladaLoader.cpp	2012-05-05 09:38:16.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/ColladaLoader.cpp	2013-05-01 19:28:57.632185296 -0400
220cd92
@@ -48,7 +48,7 @@
220cd92
 #include "ColladaLoader.h"
220cd92
 #include "ColladaParser.h"
220cd92
 
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "ParsingUtils.h"
220cd92
 #include "SkeletonMeshBuilder.h"
220cd92
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/ColladaParser.cpp assimp--3.0.1270-source-only-fedora/code/ColladaParser.cpp
220cd92
--- assimp--3.0.1270-source-only/code/ColladaParser.cpp	2012-05-05 09:38:16.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/ColladaParser.cpp	2013-05-01 19:28:57.639185571 -0400
220cd92
@@ -47,7 +47,7 @@
220cd92
 #ifndef ASSIMP_BUILD_NO_DAE_IMPORTER
220cd92
 
220cd92
 #include "ColladaParser.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "ParsingUtils.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/CSMLoader.cpp assimp--3.0.1270-source-only-fedora/code/CSMLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/CSMLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/CSMLoader.cpp	2013-05-01 19:28:57.642185688 -0400
220cd92
@@ -50,7 +50,7 @@
220cd92
 #include "CSMLoader.h"
220cd92
 #include "SkeletonMeshBuilder.h"
220cd92
 #include "ParsingUtils.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/DXFLoader.cpp assimp--3.0.1270-source-only-fedora/code/DXFLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/DXFLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/DXFLoader.cpp	2013-05-01 19:28:57.648185924 -0400
220cd92
@@ -49,7 +49,7 @@
220cd92
 #include "DXFLoader.h"
220cd92
 #include "ParsingUtils.h"
220cd92
 #include "ConvertToLHProcess.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 #include "DXFHelper.h"
220cd92
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/fast_atof_assimp.h assimp--3.0.1270-source-only-fedora/code/fast_atof_assimp.h
220cd92
--- assimp--3.0.1270-source-only/code/fast_atof_assimp.h	1969-12-31 19:00:00.000000000 -0500
04b8c9f
+++ assimp--3.0.1270-source-only-fedora/code/fast_atof_assimp.h	2013-05-28 22:01:04.368372806 -0400
220cd92
@@ -0,0 +1,264 @@
220cd92
+// Copyright (C) 2002-2007 Nikolaus Gebhardt
220cd92
+// This file is part of the "Irrlicht Engine" and the "irrXML" project.
220cd92
+// For conditions of distribution and use, see copyright notice in irrlicht.h and irrXML.h
220cd92
+
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+// Original description: (Schrompf)
220cd92
+// Adapted to the ASSIMP library because the builtin atof indeed takes AGES to parse a
220cd92
+// float inside a large string. Before parsing, it does a strlen on the given point.
220cd92
+// Changes:
220cd92
+//  22nd October 08 (Aramis_acg): Added temporary cast to double, added strtoul10_64
220cd92
+//     to ensure long numbers are handled correctly
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+
220cd92
+
220cd92
+#ifndef __ASSIMP_FAST_A_TO_F_H_INCLUDED__
220cd92
+#define __ASSIMP_FAST_A_TO_F_H_INCLUDED__
220cd92
+
220cd92
+#include <math.h>
220cd92
+#include "fast_atof.h"
220cd92
+
220cd92
+namespace Assimp
220cd92
+{
220cd92
+
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+// Convert a string in decimal format to a number
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+inline unsigned int strtoul10( const char* in, const char** out=0)
220cd92
+{
220cd92
+	return irr::core::strtoul10(in, out);
220cd92
+}
220cd92
+
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+// Convert a string in octal format to a number
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+inline unsigned int strtoul8( const char* in, const char** out=0)
220cd92
+{
220cd92
+	return irr::core::strtoul8(in, out);
220cd92
+}
220cd92
+
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+// Convert a string in hex format to a number
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+inline unsigned int strtoul16( const char* in, const char** out=0)
220cd92
+{
220cd92
+	return irr::core::strtoul16(in, out);
220cd92
+}
220cd92
+
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+// Convert just one hex digit
220cd92
+// Return value is UINT_MAX if the input character is not a hex digit.
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+inline unsigned int HexDigitToDecimal(char in)
220cd92
+{
220cd92
+	unsigned int out = UINT_MAX;
220cd92
+	if (in >= '0' && in <= '9')
220cd92
+		out = in - '0';
220cd92
+
220cd92
+	else if (in >= 'a' && in <= 'f')
220cd92
+		out = 10u + in - 'a';
220cd92
+
220cd92
+	else if (in >= 'A' && in <= 'F')
220cd92
+		out = 10u + in - 'A';
220cd92
+
220cd92
+	// return value is UINT_MAX if the input is not a hex digit
220cd92
+	return out;
220cd92
+}
220cd92
+
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+// Convert a hex-encoded octet (2 characters, i.e. df or 1a).
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+inline uint8_t HexOctetToDecimal(const char* in)
220cd92
+{
220cd92
+	return ((uint8_t)HexDigitToDecimal(in[0])<<4)+(uint8_t)HexDigitToDecimal(in[1]);
220cd92
+}
220cd92
+
220cd92
+
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+// signed variant of strtoul10
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+inline int strtol10( const char* in, const char** out=0)
220cd92
+{
220cd92
+	return irr::core::strtol10(in, out);
220cd92
+}
220cd92
+
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+// Parse a C++-like integer literal - hex and oct prefixes.
220cd92
+// 0xNNNN - hex
220cd92
+// 0NNN   - oct
220cd92
+// NNN    - dec
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+inline unsigned int strtoul_cppstyle( const char* in, const char** out=0)
220cd92
+{
220cd92
+	if ('0' == in[0])
220cd92
+	{
220cd92
+		return 'x' == in[1] ? strtoul16(in+2,out) : strtoul8(in+1,out);
220cd92
+	}
220cd92
+	return strtoul10(in, out);
220cd92
+}
220cd92
+
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+// Special version of the function, providing higher accuracy and safety
220cd92
+// It is mainly used by fast_atof to prevent ugly and unwanted integer overflows.
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+inline uint64_t strtoul10_64( const char* in, const char** out=0, unsigned int* max_inout=0)
220cd92
+{
220cd92
+	unsigned int cur = 0;
220cd92
+	uint64_t value = 0;
220cd92
+
220cd92
+	bool running = true;
220cd92
+	while ( running )
220cd92
+	{
220cd92
+		if ( *in < '0' || *in > '9' )
220cd92
+			break;
220cd92
+
220cd92
+		const uint64_t new_value = ( value * 10 ) + ( *in - '0' );
220cd92
+		
220cd92
+		if (new_value < value) /* numeric overflow, we rely on you */
220cd92
+			return value;
220cd92
+
220cd92
+		value = new_value;
220cd92
+
220cd92
+		++in;
220cd92
+		++cur;
220cd92
+
220cd92
+		if (max_inout && *max_inout == cur) {
220cd92
+					
220cd92
+			if (out) { /* skip to end */
220cd92
+				while (*in >= '0' && *in <= '9')
220cd92
+					++in;
220cd92
+				*out = in;
220cd92
+			}
220cd92
+
220cd92
+			return value;
220cd92
+		}
220cd92
+	}
220cd92
+	if (out)
220cd92
+		*out = in;
220cd92
+
220cd92
+	if (max_inout)
220cd92
+		*max_inout = cur;
220cd92
+
220cd92
+	return value;
220cd92
+}
220cd92
+
220cd92
+// Number of relevant decimals for floating-point parsing.
220cd92
+#define AI_FAST_ATOF_RELAVANT_DECIMALS 15
220cd92
+
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+//! Provides a fast function for converting a string into a float,
220cd92
+//! about 6 times faster than atof in win32.
220cd92
+// If you find any bugs, please send them to me, niko (at) irrlicht3d.org.
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+template <typename Real>
220cd92
+inline const char* fast_atoreal_move( const char* c, Real& out)
220cd92
+{
220cd92
+	Real f;
220cd92
+
220cd92
+	bool inv = (*c=='-');
220cd92
+	if (inv || *c=='+') {
220cd92
+		++c;
220cd92
+	}
220cd92
+
220cd92
+	f = static_cast<Real>( strtoul10_64 ( c, &c) );
220cd92
+	if (*c == '.' || (c[0] == ',' && c[1] >= '0' && c[1] <= '9')) // allow for commas, too
220cd92
+	{
220cd92
+		++c;
220cd92
+
220cd92
+		// NOTE: The original implementation is highly inaccurate here. The precision of a single
220cd92
+		// IEEE 754 float is not high enough, everything behind the 6th digit tends to be more 
220cd92
+		// inaccurate than it would need to be. Casting to double seems to solve the problem.
220cd92
+		// strtol_64 is used to prevent integer overflow.
220cd92
+
220cd92
+		// Another fix: this tends to become 0 for long numbers if we don't limit the maximum 
220cd92
+		// number of digits to be read. AI_FAST_ATOF_RELAVANT_DECIMALS can be a value between
220cd92
+		// 1 and 15.
220cd92
+		unsigned int diff = AI_FAST_ATOF_RELAVANT_DECIMALS;
220cd92
+		double pl = static_cast<double>( strtoul10_64 ( c, &c, &diff ));
220cd92
+
220cd92
+		pl *= irr::core::fast_atof_table[diff];
220cd92
+		f += static_cast<Real>( pl );
220cd92
+	}
220cd92
+
220cd92
+	// A major 'E' must be allowed. Necessary for proper reading of some DXF files.
220cd92
+	// Thanks to Zhao Lei to point out that this if() must be outside the if (*c == '.' ..)
220cd92
+	if (*c == 'e' || *c == 'E')	{
220cd92
+
220cd92
+		++c;
220cd92
+		const bool einv = (*c=='-');
220cd92
+		if (einv || *c=='+') {
220cd92
+			++c;
220cd92
+		}
220cd92
+
220cd92
+		// The reason float constants are used here is that we've seen cases where compilers
220cd92
+		// would perform such casts on compile-time constants at runtime, which would be
220cd92
+		// bad considering how frequently fast_atoreal_move<float> is called in Assimp.
220cd92
+		Real exp = static_cast<Real>( strtoul10_64(c, &c) );
220cd92
+		if (einv) {
220cd92
+			exp = -exp;
220cd92
+		}
220cd92
+		f *= pow(static_cast<Real>(10.0f), exp);
220cd92
+	}
220cd92
+
220cd92
+	if (inv) {
220cd92
+		f = -f;
220cd92
+	}
220cd92
+	out = f;
220cd92
+	return c;
220cd92
+}
220cd92
+
220cd92
+// ------------------------------------------------------------------------------------
220cd92
+// The same but more human.
220cd92
+inline float fast_atof(const char* c)
220cd92
+{
220cd92
+	float ret;
220cd92
+	fast_atoreal_move<float>(c, ret);
220cd92
+	return ret;
220cd92
+}
220cd92
+
220cd92
+
220cd92
+inline float fast_atof( const char* c, const char** cout)
220cd92
+{
220cd92
+	float ret;
220cd92
+	*cout = fast_atoreal_move<float>(c, ret);
220cd92
+
220cd92
+	return ret;
220cd92
+}
220cd92
+
220cd92
+inline float fast_atof( const char** inout)
220cd92
+{
220cd92
+	float ret;
220cd92
+	*inout = fast_atoreal_move<float>(*inout, ret);
220cd92
+
220cd92
+	return ret;
220cd92
+}
220cd92
+
220cd92
+
220cd92
+inline double fast_atod(const char* c)
220cd92
+{
220cd92
+	double ret;
220cd92
+	fast_atoreal_move<double>(c, ret);
220cd92
+	return ret;
220cd92
+}
220cd92
+
220cd92
+
220cd92
+inline double fast_atod( const char* c, const char** cout)
220cd92
+{
220cd92
+	double ret;
220cd92
+	*cout = fast_atoreal_move<double>(c, ret);
220cd92
+
220cd92
+	return ret;
220cd92
+}
220cd92
+
220cd92
+inline double fast_atod( const char** inout)
220cd92
+{
220cd92
+	double ret;
220cd92
+	*inout = fast_atoreal_move<double>(*inout, ret);
220cd92
+
220cd92
+	return ret;
220cd92
+}
220cd92
+
220cd92
+} // end of namespace Assimp
220cd92
+
220cd92
+#endif
220cd92
+
04b8c9f
diff -ruN assimp--3.0.1270-source-only/code/fast_atof.h assimp--3.0.1270-source-only-fedora/code/fast_atof.h
04b8c9f
--- assimp--3.0.1270-source-only/code/fast_atof.h	2012-03-20 18:29:58.000000000 -0400
04b8c9f
+++ assimp--3.0.1270-source-only-fedora/code/fast_atof.h	1969-12-31 19:00:00.000000000 -0500
04b8c9f
@@ -1,336 +0,0 @@
04b8c9f
-// Copyright (C) 2002-2007 Nikolaus Gebhardt
04b8c9f
-// This file is part of the "Irrlicht Engine" and the "irrXML" project.
04b8c9f
-// For conditions of distribution and use, see copyright notice in irrlicht.h and irrXML.h
04b8c9f
-
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-// Original description: (Schrompf)
04b8c9f
-// Adapted to the ASSIMP library because the builtin atof indeed takes AGES to parse a
04b8c9f
-// float inside a large string. Before parsing, it does a strlen on the given point.
04b8c9f
-// Changes:
04b8c9f
-//  22nd October 08 (Aramis_acg): Added temporary cast to double, added strtoul10_64
04b8c9f
-//     to ensure long numbers are handled correctly
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-
04b8c9f
-
04b8c9f
-#ifndef __FAST_A_TO_F_H_INCLUDED__
04b8c9f
-#define __FAST_A_TO_F_H_INCLUDED__
04b8c9f
-
04b8c9f
-#include <math.h>
04b8c9f
-
04b8c9f
-namespace Assimp
04b8c9f
-{
04b8c9f
-
04b8c9f
-const float fast_atof_table[16] =	{  // we write [16] here instead of [] to work around a swig bug
04b8c9f
-	0.f,
04b8c9f
-	0.1f,
04b8c9f
-	0.01f,
04b8c9f
-	0.001f,
04b8c9f
-	0.0001f,
04b8c9f
-	0.00001f,
04b8c9f
-	0.000001f,
04b8c9f
-	0.0000001f,
04b8c9f
-	0.00000001f,
04b8c9f
-	0.000000001f,
04b8c9f
-	0.0000000001f,
04b8c9f
-	0.00000000001f,
04b8c9f
-	0.000000000001f,
04b8c9f
-	0.0000000000001f,
04b8c9f
-	0.00000000000001f,
04b8c9f
-	0.000000000000001f
04b8c9f
-};
04b8c9f
-
04b8c9f
-
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-// Convert a string in decimal format to a number
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-inline unsigned int strtoul10( const char* in, const char** out=0)
04b8c9f
-{
04b8c9f
-	unsigned int value = 0;
04b8c9f
-
04b8c9f
-	bool running = true;
04b8c9f
-	while ( running )
04b8c9f
-	{
04b8c9f
-		if ( *in < '0' || *in > '9' )
04b8c9f
-			break;
04b8c9f
-
04b8c9f
-		value = ( value * 10 ) + ( *in - '0' );
04b8c9f
-		++in;
04b8c9f
-	}
04b8c9f
-	if (out)*out = in;
04b8c9f
-	return value;
04b8c9f
-}
04b8c9f
-
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-// Convert a string in octal format to a number
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-inline unsigned int strtoul8( const char* in, const char** out=0)
04b8c9f
-{
04b8c9f
-	unsigned int value = 0;
04b8c9f
-
04b8c9f
-	bool running = true;
04b8c9f
-	while ( running )
04b8c9f
-	{
04b8c9f
-		if ( *in < '0' || *in > '7' )
04b8c9f
-			break;
04b8c9f
-
04b8c9f
-		value = ( value << 3 ) + ( *in - '0' );
04b8c9f
-		++in;
04b8c9f
-	}
04b8c9f
-	if (out)*out = in;
04b8c9f
-	return value;
04b8c9f
-}
04b8c9f
-
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-// Convert a string in hex format to a number
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-inline unsigned int strtoul16( const char* in, const char** out=0)
04b8c9f
-{
04b8c9f
-	unsigned int value = 0;
04b8c9f
-
04b8c9f
-	bool running = true;
04b8c9f
-	while ( running )
04b8c9f
-	{
04b8c9f
-		if ( *in >= '0' && *in <= '9' )
04b8c9f
-		{
04b8c9f
-			value = ( value << 4u ) + ( *in - '0' );
04b8c9f
-		}
04b8c9f
-		else if (*in >= 'A' && *in <= 'F')
04b8c9f
-		{
04b8c9f
-			value = ( value << 4u ) + ( *in - 'A' ) + 10;
04b8c9f
-		}
04b8c9f
-		else if (*in >= 'a' && *in <= 'f')
04b8c9f
-		{
04b8c9f
-			value = ( value << 4u ) + ( *in - 'a' ) + 10;
04b8c9f
-		}
04b8c9f
-		else break;
04b8c9f
-		++in;
04b8c9f
-	}
04b8c9f
-	if (out)*out = in;
04b8c9f
-	return value;
04b8c9f
-}
04b8c9f
-
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-// Convert just one hex digit
04b8c9f
-// Return value is UINT_MAX if the input character is not a hex digit.
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-inline unsigned int HexDigitToDecimal(char in)
04b8c9f
-{
04b8c9f
-	unsigned int out = UINT_MAX;
04b8c9f
-	if (in >= '0' && in <= '9')
04b8c9f
-		out = in - '0';
04b8c9f
-
04b8c9f
-	else if (in >= 'a' && in <= 'f')
04b8c9f
-		out = 10u + in - 'a';
04b8c9f
-
04b8c9f
-	else if (in >= 'A' && in <= 'F')
04b8c9f
-		out = 10u + in - 'A';
04b8c9f
-
04b8c9f
-	// return value is UINT_MAX if the input is not a hex digit
04b8c9f
-	return out;
04b8c9f
-}
04b8c9f
-
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-// Convert a hex-encoded octet (2 characters, i.e. df or 1a).
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-inline uint8_t HexOctetToDecimal(const char* in)
04b8c9f
-{
04b8c9f
-	return ((uint8_t)HexDigitToDecimal(in[0])<<4)+(uint8_t)HexDigitToDecimal(in[1]);
04b8c9f
-}
04b8c9f
-
04b8c9f
-
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-// signed variant of strtoul10
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-inline int strtol10( const char* in, const char** out=0)
04b8c9f
-{
04b8c9f
-	bool inv = (*in=='-');
04b8c9f
-	if (inv || *in=='+')
04b8c9f
-		++in;
04b8c9f
-
04b8c9f
-	int value = strtoul10(in,out);
04b8c9f
-	if (inv) {
04b8c9f
-		value = -value;
04b8c9f
-	}
04b8c9f
-	return value;
04b8c9f
-}
04b8c9f
-
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-// Parse a C++-like integer literal - hex and oct prefixes.
04b8c9f
-// 0xNNNN - hex
04b8c9f
-// 0NNN   - oct
04b8c9f
-// NNN    - dec
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-inline unsigned int strtoul_cppstyle( const char* in, const char** out=0)
04b8c9f
-{
04b8c9f
-	if ('0' == in[0])
04b8c9f
-	{
04b8c9f
-		return 'x' == in[1] ? strtoul16(in+2,out) : strtoul8(in+1,out);
04b8c9f
-	}
04b8c9f
-	return strtoul10(in, out);
04b8c9f
-}
04b8c9f
-
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-// Special version of the function, providing higher accuracy and safety
04b8c9f
-// It is mainly used by fast_atof to prevent ugly and unwanted integer overflows.
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-inline uint64_t strtoul10_64( const char* in, const char** out=0, unsigned int* max_inout=0)
04b8c9f
-{
04b8c9f
-	unsigned int cur = 0;
04b8c9f
-	uint64_t value = 0;
04b8c9f
-
04b8c9f
-	bool running = true;
04b8c9f
-	while ( running )
04b8c9f
-	{
04b8c9f
-		if ( *in < '0' || *in > '9' )
04b8c9f
-			break;
04b8c9f
-
04b8c9f
-		const uint64_t new_value = ( value * 10 ) + ( *in - '0' );
04b8c9f
-		
04b8c9f
-		if (new_value < value) /* numeric overflow, we rely on you */
04b8c9f
-			return value;
04b8c9f
-
04b8c9f
-		value = new_value;
04b8c9f
-
04b8c9f
-		++in;
04b8c9f
-		++cur;
04b8c9f
-
04b8c9f
-		if (max_inout && *max_inout == cur) {
04b8c9f
-					
04b8c9f
-			if (out) { /* skip to end */
04b8c9f
-				while (*in >= '0' && *in <= '9')
04b8c9f
-					++in;
04b8c9f
-				*out = in;
04b8c9f
-			}
04b8c9f
-
04b8c9f
-			return value;
04b8c9f
-		}
04b8c9f
-	}
04b8c9f
-	if (out)
04b8c9f
-		*out = in;
04b8c9f
-
04b8c9f
-	if (max_inout)
04b8c9f
-		*max_inout = cur;
04b8c9f
-
04b8c9f
-	return value;
04b8c9f
-}
04b8c9f
-
04b8c9f
-// Number of relevant decimals for floating-point parsing.
04b8c9f
-#define AI_FAST_ATOF_RELAVANT_DECIMALS 15
04b8c9f
-
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-//! Provides a fast function for converting a string into a float,
04b8c9f
-//! about 6 times faster than atof in win32.
04b8c9f
-// If you find any bugs, please send them to me, niko (at) irrlicht3d.org.
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-template <typename Real>
04b8c9f
-inline const char* fast_atoreal_move( const char* c, Real& out)
04b8c9f
-{
04b8c9f
-	Real f;
04b8c9f
-
04b8c9f
-	bool inv = (*c=='-');
04b8c9f
-	if (inv || *c=='+') {
04b8c9f
-		++c;
04b8c9f
-	}
04b8c9f
-
04b8c9f
-	f = static_cast<Real>( strtoul10_64 ( c, &c) );
04b8c9f
-	if (*c == '.' || (c[0] == ',' && c[1] >= '0' && c[1] <= '9')) // allow for commas, too
04b8c9f
-	{
04b8c9f
-		++c;
04b8c9f
-
04b8c9f
-		// NOTE: The original implementation is highly inaccurate here. The precision of a single
04b8c9f
-		// IEEE 754 float is not high enough, everything behind the 6th digit tends to be more 
04b8c9f
-		// inaccurate than it would need to be. Casting to double seems to solve the problem.
04b8c9f
-		// strtol_64 is used to prevent integer overflow.
04b8c9f
-
04b8c9f
-		// Another fix: this tends to become 0 for long numbers if we don't limit the maximum 
04b8c9f
-		// number of digits to be read. AI_FAST_ATOF_RELAVANT_DECIMALS can be a value between
04b8c9f
-		// 1 and 15.
04b8c9f
-		unsigned int diff = AI_FAST_ATOF_RELAVANT_DECIMALS;
04b8c9f
-		double pl = static_cast<double>( strtoul10_64 ( c, &c, &diff ));
04b8c9f
-
04b8c9f
-		pl *= fast_atof_table[diff];
04b8c9f
-		f += static_cast<Real>( pl );
04b8c9f
-	}
04b8c9f
-
04b8c9f
-	// A major 'E' must be allowed. Necessary for proper reading of some DXF files.
04b8c9f
-	// Thanks to Zhao Lei to point out that this if() must be outside the if (*c == '.' ..)
04b8c9f
-	if (*c == 'e' || *c == 'E')	{
04b8c9f
-
04b8c9f
-		++c;
04b8c9f
-		const bool einv = (*c=='-');
04b8c9f
-		if (einv || *c=='+') {
04b8c9f
-			++c;
04b8c9f
-		}
04b8c9f
-
04b8c9f
-		// The reason float constants are used here is that we've seen cases where compilers
04b8c9f
-		// would perform such casts on compile-time constants at runtime, which would be
04b8c9f
-		// bad considering how frequently fast_atoreal_move<float> is called in Assimp.
04b8c9f
-		Real exp = static_cast<Real>( strtoul10_64(c, &c) );
04b8c9f
-		if (einv) {
04b8c9f
-			exp = -exp;
04b8c9f
-		}
04b8c9f
-		f *= pow(static_cast<Real>(10.0f), exp);
04b8c9f
-	}
04b8c9f
-
04b8c9f
-	if (inv) {
04b8c9f
-		f = -f;
04b8c9f
-	}
04b8c9f
-	out = f;
04b8c9f
-	return c;
04b8c9f
-}
04b8c9f
-
04b8c9f
-// ------------------------------------------------------------------------------------
04b8c9f
-// The same but more human.
04b8c9f
-inline float fast_atof(const char* c)
04b8c9f
-{
04b8c9f
-	float ret;
04b8c9f
-	fast_atoreal_move<float>(c, ret);
04b8c9f
-	return ret;
04b8c9f
-}
04b8c9f
-
04b8c9f
-
04b8c9f
-inline float fast_atof( const char* c, const char** cout)
04b8c9f
-{
04b8c9f
-	float ret;
04b8c9f
-	*cout = fast_atoreal_move<float>(c, ret);
04b8c9f
-
04b8c9f
-	return ret;
04b8c9f
-}
04b8c9f
-
04b8c9f
-inline float fast_atof( const char** inout)
04b8c9f
-{
04b8c9f
-	float ret;
04b8c9f
-	*inout = fast_atoreal_move<float>(*inout, ret);
04b8c9f
-
04b8c9f
-	return ret;
04b8c9f
-}
04b8c9f
-
04b8c9f
-
04b8c9f
-inline double fast_atod(const char* c)
04b8c9f
-{
04b8c9f
-	double ret;
04b8c9f
-	fast_atoreal_move<double>(c, ret);
04b8c9f
-	return ret;
04b8c9f
-}
04b8c9f
-
04b8c9f
-
04b8c9f
-inline double fast_atod( const char* c, const char** cout)
04b8c9f
-{
04b8c9f
-	double ret;
04b8c9f
-	*cout = fast_atoreal_move<double>(c, ret);
04b8c9f
-
04b8c9f
-	return ret;
04b8c9f
-}
04b8c9f
-
04b8c9f
-inline double fast_atod( const char** inout)
04b8c9f
-{
04b8c9f
-	double ret;
04b8c9f
-	*inout = fast_atoreal_move<double>(*inout, ret);
04b8c9f
-
04b8c9f
-	return ret;
04b8c9f
-}
04b8c9f
-
04b8c9f
-} // end of namespace Assimp
04b8c9f
-
04b8c9f
-#endif
04b8c9f
-
04b8c9f
diff -ruN assimp--3.0.1270-source-only/code/fast_atof.h.NO assimp--3.0.1270-source-only-fedora/code/fast_atof.h.NO
04b8c9f
--- assimp--3.0.1270-source-only/code/fast_atof.h.NO	1969-12-31 19:00:00.000000000 -0500
04b8c9f
+++ assimp--3.0.1270-source-only-fedora/code/fast_atof.h.NO	2013-05-01 19:45:21.118989917 -0400
04b8c9f
@@ -0,0 +1,336 @@
04b8c9f
+// Copyright (C) 2002-2007 Nikolaus Gebhardt
04b8c9f
+// This file is part of the "Irrlicht Engine" and the "irrXML" project.
04b8c9f
+// For conditions of distribution and use, see copyright notice in irrlicht.h and irrXML.h
04b8c9f
+
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+// Original description: (Schrompf)
04b8c9f
+// Adapted to the ASSIMP library because the builtin atof indeed takes AGES to parse a
04b8c9f
+// float inside a large string. Before parsing, it does a strlen on the given point.
04b8c9f
+// Changes:
04b8c9f
+//  22nd October 08 (Aramis_acg): Added temporary cast to double, added strtoul10_64
04b8c9f
+//     to ensure long numbers are handled correctly
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+
04b8c9f
+
04b8c9f
+#ifndef __FAST_A_TO_F_H_INCLUDED__
04b8c9f
+#define __FAST_A_TO_F_H_INCLUDED__
04b8c9f
+
04b8c9f
+#include <math.h>
04b8c9f
+
04b8c9f
+namespace Assimp
04b8c9f
+{
04b8c9f
+
04b8c9f
+const float fast_atof_table[16] =	{  // we write [16] here instead of [] to work around a swig bug
04b8c9f
+	0.f,
04b8c9f
+	0.1f,
04b8c9f
+	0.01f,
04b8c9f
+	0.001f,
04b8c9f
+	0.0001f,
04b8c9f
+	0.00001f,
04b8c9f
+	0.000001f,
04b8c9f
+	0.0000001f,
04b8c9f
+	0.00000001f,
04b8c9f
+	0.000000001f,
04b8c9f
+	0.0000000001f,
04b8c9f
+	0.00000000001f,
04b8c9f
+	0.000000000001f,
04b8c9f
+	0.0000000000001f,
04b8c9f
+	0.00000000000001f,
04b8c9f
+	0.000000000000001f
04b8c9f
+};
04b8c9f
+
04b8c9f
+
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+// Convert a string in decimal format to a number
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+inline unsigned int strtoul10( const char* in, const char** out=0)
04b8c9f
+{
04b8c9f
+	unsigned int value = 0;
04b8c9f
+
04b8c9f
+	bool running = true;
04b8c9f
+	while ( running )
04b8c9f
+	{
04b8c9f
+		if ( *in < '0' || *in > '9' )
04b8c9f
+			break;
04b8c9f
+
04b8c9f
+		value = ( value * 10 ) + ( *in - '0' );
04b8c9f
+		++in;
04b8c9f
+	}
04b8c9f
+	if (out)*out = in;
04b8c9f
+	return value;
04b8c9f
+}
04b8c9f
+
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+// Convert a string in octal format to a number
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+inline unsigned int strtoul8( const char* in, const char** out=0)
04b8c9f
+{
04b8c9f
+	unsigned int value = 0;
04b8c9f
+
04b8c9f
+	bool running = true;
04b8c9f
+	while ( running )
04b8c9f
+	{
04b8c9f
+		if ( *in < '0' || *in > '7' )
04b8c9f
+			break;
04b8c9f
+
04b8c9f
+		value = ( value << 3 ) + ( *in - '0' );
04b8c9f
+		++in;
04b8c9f
+	}
04b8c9f
+	if (out)*out = in;
04b8c9f
+	return value;
04b8c9f
+}
04b8c9f
+
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+// Convert a string in hex format to a number
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+inline unsigned int strtoul16( const char* in, const char** out=0)
04b8c9f
+{
04b8c9f
+	unsigned int value = 0;
04b8c9f
+
04b8c9f
+	bool running = true;
04b8c9f
+	while ( running )
04b8c9f
+	{
04b8c9f
+		if ( *in >= '0' && *in <= '9' )
04b8c9f
+		{
04b8c9f
+			value = ( value << 4u ) + ( *in - '0' );
04b8c9f
+		}
04b8c9f
+		else if (*in >= 'A' && *in <= 'F')
04b8c9f
+		{
04b8c9f
+			value = ( value << 4u ) + ( *in - 'A' ) + 10;
04b8c9f
+		}
04b8c9f
+		else if (*in >= 'a' && *in <= 'f')
04b8c9f
+		{
04b8c9f
+			value = ( value << 4u ) + ( *in - 'a' ) + 10;
04b8c9f
+		}
04b8c9f
+		else break;
04b8c9f
+		++in;
04b8c9f
+	}
04b8c9f
+	if (out)*out = in;
04b8c9f
+	return value;
04b8c9f
+}
04b8c9f
+
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+// Convert just one hex digit
04b8c9f
+// Return value is UINT_MAX if the input character is not a hex digit.
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+inline unsigned int HexDigitToDecimal(char in)
04b8c9f
+{
04b8c9f
+	unsigned int out = UINT_MAX;
04b8c9f
+	if (in >= '0' && in <= '9')
04b8c9f
+		out = in - '0';
04b8c9f
+
04b8c9f
+	else if (in >= 'a' && in <= 'f')
04b8c9f
+		out = 10u + in - 'a';
04b8c9f
+
04b8c9f
+	else if (in >= 'A' && in <= 'F')
04b8c9f
+		out = 10u + in - 'A';
04b8c9f
+
04b8c9f
+	// return value is UINT_MAX if the input is not a hex digit
04b8c9f
+	return out;
04b8c9f
+}
04b8c9f
+
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+// Convert a hex-encoded octet (2 characters, i.e. df or 1a).
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+inline uint8_t HexOctetToDecimal(const char* in)
04b8c9f
+{
04b8c9f
+	return ((uint8_t)HexDigitToDecimal(in[0])<<4)+(uint8_t)HexDigitToDecimal(in[1]);
04b8c9f
+}
04b8c9f
+
04b8c9f
+
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+// signed variant of strtoul10
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+inline int strtol10( const char* in, const char** out=0)
04b8c9f
+{
04b8c9f
+	bool inv = (*in=='-');
04b8c9f
+	if (inv || *in=='+')
04b8c9f
+		++in;
04b8c9f
+
04b8c9f
+	int value = strtoul10(in,out);
04b8c9f
+	if (inv) {
04b8c9f
+		value = -value;
04b8c9f
+	}
04b8c9f
+	return value;
04b8c9f
+}
04b8c9f
+
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+// Parse a C++-like integer literal - hex and oct prefixes.
04b8c9f
+// 0xNNNN - hex
04b8c9f
+// 0NNN   - oct
04b8c9f
+// NNN    - dec
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+inline unsigned int strtoul_cppstyle( const char* in, const char** out=0)
04b8c9f
+{
04b8c9f
+	if ('0' == in[0])
04b8c9f
+	{
04b8c9f
+		return 'x' == in[1] ? strtoul16(in+2,out) : strtoul8(in+1,out);
04b8c9f
+	}
04b8c9f
+	return strtoul10(in, out);
04b8c9f
+}
04b8c9f
+
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+// Special version of the function, providing higher accuracy and safety
04b8c9f
+// It is mainly used by fast_atof to prevent ugly and unwanted integer overflows.
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+inline uint64_t strtoul10_64( const char* in, const char** out=0, unsigned int* max_inout=0)
04b8c9f
+{
04b8c9f
+	unsigned int cur = 0;
04b8c9f
+	uint64_t value = 0;
04b8c9f
+
04b8c9f
+	bool running = true;
04b8c9f
+	while ( running )
04b8c9f
+	{
04b8c9f
+		if ( *in < '0' || *in > '9' )
04b8c9f
+			break;
04b8c9f
+
04b8c9f
+		const uint64_t new_value = ( value * 10 ) + ( *in - '0' );
04b8c9f
+		
04b8c9f
+		if (new_value < value) /* numeric overflow, we rely on you */
04b8c9f
+			return value;
04b8c9f
+
04b8c9f
+		value = new_value;
04b8c9f
+
04b8c9f
+		++in;
04b8c9f
+		++cur;
04b8c9f
+
04b8c9f
+		if (max_inout && *max_inout == cur) {
04b8c9f
+					
04b8c9f
+			if (out) { /* skip to end */
04b8c9f
+				while (*in >= '0' && *in <= '9')
04b8c9f
+					++in;
04b8c9f
+				*out = in;
04b8c9f
+			}
04b8c9f
+
04b8c9f
+			return value;
04b8c9f
+		}
04b8c9f
+	}
04b8c9f
+	if (out)
04b8c9f
+		*out = in;
04b8c9f
+
04b8c9f
+	if (max_inout)
04b8c9f
+		*max_inout = cur;
04b8c9f
+
04b8c9f
+	return value;
04b8c9f
+}
04b8c9f
+
04b8c9f
+// Number of relevant decimals for floating-point parsing.
04b8c9f
+#define AI_FAST_ATOF_RELAVANT_DECIMALS 15
04b8c9f
+
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+//! Provides a fast function for converting a string into a float,
04b8c9f
+//! about 6 times faster than atof in win32.
04b8c9f
+// If you find any bugs, please send them to me, niko (at) irrlicht3d.org.
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+template <typename Real>
04b8c9f
+inline const char* fast_atoreal_move( const char* c, Real& out)
04b8c9f
+{
04b8c9f
+	Real f;
04b8c9f
+
04b8c9f
+	bool inv = (*c=='-');
04b8c9f
+	if (inv || *c=='+') {
04b8c9f
+		++c;
04b8c9f
+	}
04b8c9f
+
04b8c9f
+	f = static_cast<Real>( strtoul10_64 ( c, &c) );
04b8c9f
+	if (*c == '.' || (c[0] == ',' && c[1] >= '0' && c[1] <= '9')) // allow for commas, too
04b8c9f
+	{
04b8c9f
+		++c;
04b8c9f
+
04b8c9f
+		// NOTE: The original implementation is highly inaccurate here. The precision of a single
04b8c9f
+		// IEEE 754 float is not high enough, everything behind the 6th digit tends to be more 
04b8c9f
+		// inaccurate than it would need to be. Casting to double seems to solve the problem.
04b8c9f
+		// strtol_64 is used to prevent integer overflow.
04b8c9f
+
04b8c9f
+		// Another fix: this tends to become 0 for long numbers if we don't limit the maximum 
04b8c9f
+		// number of digits to be read. AI_FAST_ATOF_RELAVANT_DECIMALS can be a value between
04b8c9f
+		// 1 and 15.
04b8c9f
+		unsigned int diff = AI_FAST_ATOF_RELAVANT_DECIMALS;
04b8c9f
+		double pl = static_cast<double>( strtoul10_64 ( c, &c, &diff ));
04b8c9f
+
04b8c9f
+		pl *= fast_atof_table[diff];
04b8c9f
+		f += static_cast<Real>( pl );
04b8c9f
+	}
04b8c9f
+
04b8c9f
+	// A major 'E' must be allowed. Necessary for proper reading of some DXF files.
04b8c9f
+	// Thanks to Zhao Lei to point out that this if() must be outside the if (*c == '.' ..)
04b8c9f
+	if (*c == 'e' || *c == 'E')	{
04b8c9f
+
04b8c9f
+		++c;
04b8c9f
+		const bool einv = (*c=='-');
04b8c9f
+		if (einv || *c=='+') {
04b8c9f
+			++c;
04b8c9f
+		}
04b8c9f
+
04b8c9f
+		// The reason float constants are used here is that we've seen cases where compilers
04b8c9f
+		// would perform such casts on compile-time constants at runtime, which would be
04b8c9f
+		// bad considering how frequently fast_atoreal_move<float> is called in Assimp.
04b8c9f
+		Real exp = static_cast<Real>( strtoul10_64(c, &c) );
04b8c9f
+		if (einv) {
04b8c9f
+			exp = -exp;
04b8c9f
+		}
04b8c9f
+		f *= pow(static_cast<Real>(10.0f), exp);
04b8c9f
+	}
04b8c9f
+
04b8c9f
+	if (inv) {
04b8c9f
+		f = -f;
04b8c9f
+	}
04b8c9f
+	out = f;
04b8c9f
+	return c;
04b8c9f
+}
04b8c9f
+
04b8c9f
+// ------------------------------------------------------------------------------------
04b8c9f
+// The same but more human.
04b8c9f
+inline float fast_atof(const char* c)
04b8c9f
+{
04b8c9f
+	float ret;
04b8c9f
+	fast_atoreal_move<float>(c, ret);
04b8c9f
+	return ret;
04b8c9f
+}
04b8c9f
+
04b8c9f
+
04b8c9f
+inline float fast_atof( const char* c, const char** cout)
04b8c9f
+{
04b8c9f
+	float ret;
04b8c9f
+	*cout = fast_atoreal_move<float>(c, ret);
04b8c9f
+
04b8c9f
+	return ret;
04b8c9f
+}
04b8c9f
+
04b8c9f
+inline float fast_atof( const char** inout)
04b8c9f
+{
04b8c9f
+	float ret;
04b8c9f
+	*inout = fast_atoreal_move<float>(*inout, ret);
04b8c9f
+
04b8c9f
+	return ret;
04b8c9f
+}
04b8c9f
+
04b8c9f
+
04b8c9f
+inline double fast_atod(const char* c)
04b8c9f
+{
04b8c9f
+	double ret;
04b8c9f
+	fast_atoreal_move<double>(c, ret);
04b8c9f
+	return ret;
04b8c9f
+}
04b8c9f
+
04b8c9f
+
04b8c9f
+inline double fast_atod( const char* c, const char** cout)
04b8c9f
+{
04b8c9f
+	double ret;
04b8c9f
+	*cout = fast_atoreal_move<double>(c, ret);
04b8c9f
+
04b8c9f
+	return ret;
04b8c9f
+}
04b8c9f
+
04b8c9f
+inline double fast_atod( const char** inout)
04b8c9f
+{
04b8c9f
+	double ret;
04b8c9f
+	*inout = fast_atoreal_move<double>(*inout, ret);
04b8c9f
+
04b8c9f
+	return ret;
04b8c9f
+}
04b8c9f
+
04b8c9f
+} // end of namespace Assimp
04b8c9f
+
04b8c9f
+#endif
04b8c9f
+
220cd92
diff -ruN assimp--3.0.1270-source-only/code/FileSystemFilter.h assimp--3.0.1270-source-only-fedora/code/FileSystemFilter.h
220cd92
--- assimp--3.0.1270-source-only/code/FileSystemFilter.h	2012-03-11 22:04:36.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/FileSystemFilter.h	2013-05-01 19:29:06.695540600 -0400
220cd92
@@ -46,7 +46,7 @@
220cd92
 #define AI_FILESYSTEMFILTER_H_INC
220cd92
 
220cd92
 #include "../include/assimp/IOSystem.hpp"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "ParsingUtils.h"
220cd92
 namespace Assimp	{
220cd92
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/IFCGeometry.cpp assimp--3.0.1270-source-only-fedora/code/IFCGeometry.cpp
220cd92
--- assimp--3.0.1270-source-only/code/IFCGeometry.cpp	2012-03-20 23:31:58.000000000 -0400
ad9bcd1
+++ assimp--3.0.1270-source-only-fedora/code/IFCGeometry.cpp	2013-05-29 21:49:47.663383209 -0400
ad9bcd1
@@ -49,8 +49,8 @@
220cd92
 #include "PolyTools.h"
220cd92
 #include "ProcessHelper.h"
220cd92
 
220cd92
-#include "../contrib/poly2tri/poly2tri/poly2tri.h"
ad9bcd1
-#include "../contrib/clipper/clipper.hpp"
220cd92
+#include "poly2tri/poly2tri.h"
ad9bcd1
+#include "clipper.hpp"
220cd92
 
220cd92
 #include <iterator>
ad9bcd1
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/IRRLoader.cpp assimp--3.0.1270-source-only-fedora/code/IRRLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/IRRLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/IRRLoader.cpp	2013-05-01 19:28:57.687187452 -0400
220cd92
@@ -47,7 +47,7 @@
220cd92
 
220cd92
 #include "IRRLoader.h"
220cd92
 #include "ParsingUtils.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "GenericProperty.h"
220cd92
 
220cd92
 #include "SceneCombiner.h"
220cd92
diff -ruN assimp--3.0.1270-source-only/code/IRRMeshLoader.cpp assimp--3.0.1270-source-only-fedora/code/IRRMeshLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/IRRMeshLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/IRRMeshLoader.cpp	2013-05-01 19:28:57.688187492 -0400
220cd92
@@ -45,7 +45,7 @@
220cd92
 
220cd92
 #include "IRRMeshLoader.h"
220cd92
 #include "ParsingUtils.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
 using namespace irr;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/IRRShared.cpp assimp--3.0.1270-source-only-fedora/code/IRRShared.cpp
220cd92
--- assimp--3.0.1270-source-only/code/IRRShared.cpp	2012-02-03 05:38:32.000000000 -0500
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/IRRShared.cpp	2013-05-01 19:28:57.690187570 -0400
220cd92
@@ -47,7 +47,7 @@
220cd92
 
220cd92
 #include "IRRShared.h"
220cd92
 #include "ParsingUtils.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
 using namespace irr;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/irrXMLWrapper.h assimp--3.0.1270-source-only-fedora/code/irrXMLWrapper.h
220cd92
--- assimp--3.0.1270-source-only/code/irrXMLWrapper.h	2012-02-03 19:04:08.000000000 -0500
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/irrXMLWrapper.h	2013-05-01 19:52:02.683902014 -0400
220cd92
@@ -42,7 +42,7 @@
220cd92
 #define INCLUDED_AI_IRRXML_WRAPPER
220cd92
 
220cd92
 // some long includes ....
220cd92
-#include "./../contrib/irrXML/irrXML.h"
220cd92
+#include "irrXML.h"
220cd92
 #include "./../include/assimp/IOStream.hpp"
220cd92
 namespace Assimp	{
220cd92
 
220cd92
@@ -115,7 +115,7 @@
220cd92
 
220cd92
 	// ----------------------------------------------------------------------------------
220cd92
 	//! Returns size of file in bytes
220cd92
-	virtual int getSize()	{
220cd92
+	virtual long  getSize() const	{
220cd92
 		return (int)data.size();
220cd92
 	}
220cd92
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/LWSLoader.cpp assimp--3.0.1270-source-only-fedora/code/LWSLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/LWSLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/LWSLoader.cpp	2013-05-01 19:28:57.702188040 -0400
220cd92
@@ -47,7 +47,7 @@
220cd92
 
220cd92
 #include "LWSLoader.h"
220cd92
 #include "ParsingUtils.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 #include "SceneCombiner.h"
220cd92
 #include "GenericProperty.h"
220cd92
diff -ruN assimp--3.0.1270-source-only/code/MaterialSystem.cpp assimp--3.0.1270-source-only-fedora/code/MaterialSystem.cpp
220cd92
--- assimp--3.0.1270-source-only/code/MaterialSystem.cpp	2012-02-03 05:38:32.000000000 -0500
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/MaterialSystem.cpp	2013-05-01 19:28:57.706188197 -0400
220cd92
@@ -45,7 +45,7 @@
220cd92
 #include "AssimpPCH.h"
220cd92
 
220cd92
 #include "Hash.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "ParsingUtils.h"
220cd92
 #include "MaterialSystem.h"
220cd92
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/MD5Loader.cpp assimp--3.0.1270-source-only-fedora/code/MD5Loader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/MD5Loader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/MD5Loader.cpp	2013-05-01 19:28:57.712188432 -0400
220cd92
@@ -50,7 +50,7 @@
220cd92
 #include "RemoveComments.h"
220cd92
 #include "MD5Loader.h"
220cd92
 #include "StringComparison.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "SkeletonMeshBuilder.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/MD5Parser.cpp assimp--3.0.1270-source-only-fedora/code/MD5Parser.cpp
220cd92
--- assimp--3.0.1270-source-only/code/MD5Parser.cpp	2012-02-03 05:38:32.000000000 -0500
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/MD5Parser.cpp	2013-05-01 19:28:57.713188472 -0400
220cd92
@@ -47,7 +47,7 @@
220cd92
 // internal headers
220cd92
 #include "MD5Loader.h"
220cd92
 #include "MaterialSystem.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "ParsingUtils.h"
220cd92
 #include "StringComparison.h"
220cd92
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/NFFLoader.cpp assimp--3.0.1270-source-only-fedora/code/NFFLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/NFFLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/NFFLoader.cpp	2013-05-01 19:28:57.727189020 -0400
220cd92
@@ -48,7 +48,7 @@
220cd92
 #include "NFFLoader.h"
220cd92
 #include "ParsingUtils.h"
220cd92
 #include "StandardShapes.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "RemoveComments.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/ObjFileMtlImporter.cpp assimp--3.0.1270-source-only-fedora/code/ObjFileMtlImporter.cpp
220cd92
--- assimp--3.0.1270-source-only/code/ObjFileMtlImporter.cpp	2012-05-01 11:39:52.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/ObjFileMtlImporter.cpp	2013-05-01 19:28:57.730189138 -0400
220cd92
@@ -45,7 +45,7 @@
220cd92
 #include "ObjFileMtlImporter.h"
220cd92
 #include "ObjTools.h"
220cd92
 #include "ObjFileData.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 namespace Assimp	{
220cd92
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/ObjTools.h assimp--3.0.1270-source-only-fedora/code/ObjTools.h
220cd92
--- assimp--3.0.1270-source-only/code/ObjTools.h	2012-06-03 08:10:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/ObjTools.h	2013-05-01 19:29:06.742542443 -0400
220cd92
@@ -44,7 +44,7 @@
220cd92
 #ifndef OBJ_TOOLS_H_INC
220cd92
 #define OBJ_TOOLS_H_INC
220cd92
 
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 namespace Assimp
220cd92
 {
220cd92
diff -ruN assimp--3.0.1270-source-only/code/OFFLoader.cpp assimp--3.0.1270-source-only-fedora/code/OFFLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/OFFLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/OFFLoader.cpp	2013-05-01 19:28:57.733189256 -0400
220cd92
@@ -49,7 +49,7 @@
220cd92
 // internal headers
220cd92
 #include "OFFLoader.h"
220cd92
 #include "ParsingUtils.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 
220cd92
 using namespace Assimp;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/OgreXmlHelper.hpp assimp--3.0.1270-source-only-fedora/code/OgreXmlHelper.hpp
220cd92
--- assimp--3.0.1270-source-only/code/OgreXmlHelper.hpp	2012-05-23 11:23:36.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/OgreXmlHelper.hpp	2013-05-01 19:29:05.535495114 -0400
220cd92
@@ -1,6 +1,6 @@
220cd92
 
220cd92
 #include "irrXMLWrapper.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 namespace Assimp
220cd92
 {
220cd92
diff -ruN assimp--3.0.1270-source-only/code/PlyParser.cpp assimp--3.0.1270-source-only-fedora/code/PlyParser.cpp
220cd92
--- assimp--3.0.1270-source-only/code/PlyParser.cpp	2012-02-03 05:38:32.000000000 -0500
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/PlyParser.cpp	2013-05-01 19:28:57.745189726 -0400
220cd92
@@ -45,7 +45,7 @@
220cd92
 #ifndef ASSIMP_BUILD_NO_PLY_IMPORTER
220cd92
 
220cd92
 #include "PlyLoader.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/Q3BSPZipArchive.h assimp--3.0.1270-source-only-fedora/code/Q3BSPZipArchive.h
220cd92
--- assimp--3.0.1270-source-only/code/Q3BSPZipArchive.h	2012-02-03 19:04:08.000000000 -0500
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/Q3BSPZipArchive.h	2013-05-01 20:01:06.929473083 -0400
220cd92
@@ -40,7 +40,7 @@
220cd92
 #ifndef AI_Q3BSP_ZIPARCHIVE_H_INC
220cd92
 #define AI_Q3BSP_ZIPARCHIVE_H_INC
220cd92
 
220cd92
-#include "../contrib/unzip/unzip.h"
220cd92
+#include "unzip.h"
220cd92
 #include "../include/assimp/IOStream.hpp"
220cd92
 #include "../include/assimp/IOSystem.hpp"
220cd92
 #include <string>
220cd92
diff -ruN assimp--3.0.1270-source-only/code/Q3DLoader.cpp assimp--3.0.1270-source-only-fedora/code/Q3DLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/Q3DLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/Q3DLoader.cpp	2013-05-01 19:28:57.754190079 -0400
220cd92
@@ -49,7 +49,7 @@
220cd92
 // internal headers
220cd92
 #include "Q3DLoader.h"
220cd92
 #include "StreamReader.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/RawLoader.cpp assimp--3.0.1270-source-only-fedora/code/RawLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/RawLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/RawLoader.cpp	2013-05-01 19:28:57.755190118 -0400
220cd92
@@ -49,7 +49,7 @@
220cd92
 // internal headers
220cd92
 #include "RawLoader.h"
220cd92
 #include "ParsingUtils.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/SceneCombiner.cpp assimp--3.0.1270-source-only-fedora/code/SceneCombiner.cpp
220cd92
--- assimp--3.0.1270-source-only/code/SceneCombiner.cpp	2012-02-03 05:38:32.000000000 -0500
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/SceneCombiner.cpp	2013-05-01 19:28:57.760190314 -0400
220cd92
@@ -48,7 +48,7 @@
220cd92
 // ----------------------------------------------------------------------------
220cd92
 #include "AssimpPCH.h"
220cd92
 #include "SceneCombiner.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "Hash.h"
220cd92
 #include "time.h"
220cd92
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/SMDLoader.cpp assimp--3.0.1270-source-only-fedora/code/SMDLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/SMDLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/SMDLoader.cpp	2013-05-01 19:28:57.765190510 -0400
220cd92
@@ -48,7 +48,7 @@
220cd92
 
220cd92
 // internal headers
220cd92
 #include "SMDLoader.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "SkeletonMeshBuilder.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/STEPFileReader.cpp assimp--3.0.1270-source-only-fedora/code/STEPFileReader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/STEPFileReader.cpp	2012-06-17 14:15:50.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/STEPFileReader.cpp	2013-05-01 19:28:57.773190824 -0400
220cd92
@@ -45,7 +45,7 @@
220cd92
 #include "AssimpPCH.h"
220cd92
 #include "STEPFileReader.h"
220cd92
 #include "TinyFormatter.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
 namespace EXPRESS = STEP::EXPRESS;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/STLLoader.cpp assimp--3.0.1270-source-only-fedora/code/STLLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/STLLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/STLLoader.cpp	2013-05-01 19:28:57.774190863 -0400
220cd92
@@ -47,7 +47,7 @@
220cd92
 // internal headers
220cd92
 #include "STLLoader.h"
220cd92
 #include "ParsingUtils.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
 
220cd92
diff -ruN assimp--3.0.1270-source-only/code/UnrealLoader.cpp assimp--3.0.1270-source-only-fedora/code/UnrealLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/UnrealLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/UnrealLoader.cpp	2013-05-01 19:28:57.782191176 -0400
220cd92
@@ -53,7 +53,7 @@
220cd92
 #include "UnrealLoader.h"
220cd92
 #include "StreamReader.h"
220cd92
 #include "ParsingUtils.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "ConvertToLHProcess.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/ValidateDataStructure.cpp assimp--3.0.1270-source-only-fedora/code/ValidateDataStructure.cpp
220cd92
--- assimp--3.0.1270-source-only/code/ValidateDataStructure.cpp	2012-02-03 05:38:32.000000000 -0500
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/ValidateDataStructure.cpp	2013-05-01 19:28:57.784191255 -0400
220cd92
@@ -49,7 +49,7 @@
220cd92
 // internal headers
220cd92
 #include "ValidateDataStructure.h"
220cd92
 #include "BaseImporter.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 #include "ProcessHelper.h"
220cd92
 
220cd92
 // CRT headers
220cd92
diff -ruN assimp--3.0.1270-source-only/code/XFileParser.cpp assimp--3.0.1270-source-only-fedora/code/XFileParser.cpp
220cd92
--- assimp--3.0.1270-source-only/code/XFileParser.cpp	2012-04-23 01:22:42.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/XFileParser.cpp	2013-05-01 19:28:57.790191490 -0400
220cd92
@@ -46,7 +46,7 @@
220cd92
 
220cd92
 #include "XFileParser.h"
220cd92
 #include "XFileHelper.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 using namespace Assimp;
220cd92
 using namespace Assimp::XFile;
220cd92
diff -ruN assimp--3.0.1270-source-only/code/XGLLoader.cpp assimp--3.0.1270-source-only-fedora/code/XGLLoader.cpp
220cd92
--- assimp--3.0.1270-source-only/code/XGLLoader.cpp	2012-04-23 00:26:28.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/code/XGLLoader.cpp	2013-05-01 19:28:57.792191568 -0400
220cd92
@@ -46,7 +46,7 @@
220cd92
 
220cd92
 #include "XGLLoader.h"
220cd92
 #include "ParsingUtils.h"
220cd92
-#include "fast_atof.h"
220cd92
+#include "fast_atof_assimp.h"
220cd92
 
220cd92
 #include "StreamReader.h"
220cd92
 #include "MemoryIOWrapper.h"
220cd92
diff -ruN assimp--3.0.1270-source-only/tools/assimp_cmd/CMakeLists.txt assimp--3.0.1270-source-only-fedora/tools/assimp_cmd/CMakeLists.txt
220cd92
--- assimp--3.0.1270-source-only/tools/assimp_cmd/CMakeLists.txt	2012-02-18 12:55:48.000000000 -0500
04b8c9f
+++ assimp--3.0.1270-source-only-fedora/tools/assimp_cmd/CMakeLists.txt	2013-05-28 22:04:01.204077041 -0400
220cd92
@@ -18,8 +18,9 @@
220cd92
 )
220cd92
 
220cd92
 SET_PROPERTY(TARGET assimp_cmd PROPERTY DEBUG_POSTFIX ${DEBUG_POSTFIX})
220cd92
-
04b8c9f
-TARGET_LINK_LIBRARIES( assimp_cmd assimp ${ZLIB_LIBRARIES})
220cd92
+INCLUDE_DIRECTORIES(${IRRXML_INCLUDE_PATH})
04b8c9f
+TARGET_LINK_LIBRARIES( assimp_cmd assimp ${ZLIB_LIBRARIES} ${POLY2TRI_LIB})
220cd92
+TARGET_LINK_LIBRARIES( assimp_cmd ${IRRXML_LIB})
220cd92
 SET_TARGET_PROPERTIES( assimp_cmd PROPERTIES
220cd92
 	OUTPUT_NAME assimp
220cd92
 )
220cd92
diff -ruN assimp--3.0.1270-source-only/tools/assimp_cmd/ImageExtractor.cpp assimp--3.0.1270-source-only-fedora/tools/assimp_cmd/ImageExtractor.cpp
220cd92
--- assimp--3.0.1270-source-only/tools/assimp_cmd/ImageExtractor.cpp	2012-03-21 00:41:40.000000000 -0400
220cd92
+++ assimp--3.0.1270-source-only-fedora/tools/assimp_cmd/ImageExtractor.cpp	2013-05-01 20:06:46.771944353 -0400
220cd92
@@ -44,7 +44,7 @@
220cd92
  */
220cd92
 
220cd92
 #include "Main.h"
220cd92
-#include <../code/fast_atof.h>
220cd92
+#include <fast_atof_assimp.h>
220cd92
 #include <../code/StringComparison.h>
220cd92
 
220cd92
 const char* AICMD_MSG_DUMP_HELP_E =