diff --git a/code/AssimpPCH.h b/code/AssimpPCH.h index 0cd0861e9..fcdca4dee 100644 --- a/code/AssimpPCH.h +++ b/code/AssimpPCH.h @@ -61,23 +61,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # define AI_DEBUG_INVALIDATE_PTR(x) #endif -// We depend heavily on the STL's performance, so we need to make sure -// that the M$ implementation isn't 'secure', but 'fast' -#if 0 // this crashes! what the fuck??? -#if (defined _MSC_VER) && (!defined DEBUG) -# define _SECURE_SCL 0 -# define _SCL_SECURE_NO_DEPRECATE -# define _HAS_ITERATOR_DEBUGGING 0 -#endif -#endif - // If we have at least VC8 some C string manipulation functions - // are mapped to their safe _s counterparts (e.g. _itoa_s). +// are mapped to their safe _s counterparts (e.g. _itoa_s). #if _MSC_VER >= 1400 && !(defined _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES) # define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1 #endif -// Actually that'snot required for MSVC (it is included somewhere in +// Actually that's not required for MSVC (it is included somewhere in // the STL ..) but it is necessary for build with STLport. #include diff --git a/contrib/cppunit-1.12.1/src/cppunit/cppunitvc9.vcproj b/contrib/cppunit-1.12.1/src/cppunit/cppunitvc9.vcproj index 0bbb4f570..d076c2e69 100644 --- a/contrib/cppunit-1.12.1/src/cppunit/cppunitvc9.vcproj +++ b/contrib/cppunit-1.12.1/src/cppunit/cppunitvc9.vcproj @@ -23,7 +23,7 @@ OutputDirectory=".\Debug" IntermediateDirectory=".\Debug" ConfigurationType="4" - InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" + InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops;..\..\..\..\workspaces\vc9\shared\FastSTL.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" @@ -101,7 +101,7 @@ OutputDirectory=".\Release" IntermediateDirectory=".\Release" ConfigurationType="4" - InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" + InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops;..\..\..\..\workspaces\vc9\shared\FastSTL.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" @@ -654,11 +654,11 @@ @@ -2695,11 +2695,11 @@ > diff --git a/test/unit/UnitTestPCH.h b/test/unit/UnitTestPCH.h index 152db986f..3b0479b11 100644 --- a/test/unit/UnitTestPCH.h +++ b/test/unit/UnitTestPCH.h @@ -4,12 +4,8 @@ // # include // #endif -// Assimp public API -#include -#include -#include -#include - +// We need to be sure to have the same STL settings as Assimp +#include // CPPUNIT #include diff --git a/workspaces/vc9/UnitTest.vcproj b/workspaces/vc9/UnitTest.vcproj index 14a8bc2ae..10511406a 100644 --- a/workspaces/vc9/UnitTest.vcproj +++ b/workspaces/vc9/UnitTest.vcproj @@ -24,7 +24,7 @@ OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)" IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)" ConfigurationType="1" - InheritedPropertySheets=".\shared\UnitTest.vsprops" + InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\FastSTL.vsprops" CharacterSet="1" > @@ -127,7 +127,7 @@ @@ -263,7 +263,7 @@ OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)" IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)" ConfigurationType="1" - InheritedPropertySheets=".\shared\UnitTest.vsprops" + InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\FastSTL.vsprops" CharacterSet="1" > @@ -423,7 +423,7 @@ OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)" IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)" ConfigurationType="1" - InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\NoBoostShared.vsprops" + InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\NoBoostShared.vsprops;.\shared\FastSTL.vsprops" CharacterSet="1" > diff --git a/workspaces/vc9/assimp.vcproj b/workspaces/vc9/assimp.vcproj index d4f11878d..96e9acb55 100644 --- a/workspaces/vc9/assimp.vcproj +++ b/workspaces/vc9/assimp.vcproj @@ -21,7 +21,7 @@ @@ -125,7 +127,7 @@ @@ -264,6 +267,7 @@ OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)" IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)" ConfigurationType="1" + InheritedPropertySheets=".\shared\FastSTL.vsprops" CharacterSet="2" > @@ -425,7 +429,7 @@ OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)" IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)" ConfigurationType="1" - InheritedPropertySheets=".\shared\NoBoostShared.vsprops" + InheritedPropertySheets=".\shared\NoBoostShared.vsprops;.\shared\FastSTL.vsprops" CharacterSet="2" > diff --git a/workspaces/vc9/shared/FastSTL.vsprops b/workspaces/vc9/shared/FastSTL.vsprops new file mode 100644 index 000000000..dd1a5f575 --- /dev/null +++ b/workspaces/vc9/shared/FastSTL.vsprops @@ -0,0 +1,11 @@ + + + +