diff --git a/dtool/Config.Win32.pp b/dtool/Config.Win32.pp index cb620ce918..8b2bc1e05e 100644 --- a/dtool/Config.Win32.pp +++ b/dtool/Config.Win32.pp @@ -109,10 +109,5 @@ // Must global operator new and delete functions throw exceptions? #define GLOBAL_OPERATOR_NEW_EXCEPTIONS -// What is the syntax of the STL allocator declaration? See -// LocalSetup.pp for allowable values. -//#define STL_ALLOCATOR VC6 -#define STL_ALLOCATOR MODERN - // can Intel C++ build this directory successfully (if not, change CC to msvc) #define NOT_INTEL_BUILDABLE false diff --git a/dtool/pptempl/Template.gmsvc.pp b/dtool/pptempl/Template.gmsvc.pp index 60fab80996..7d834f5b04 100644 --- a/dtool/pptempl/Template.gmsvc.pp +++ b/dtool/pptempl/Template.gmsvc.pp @@ -636,7 +636,7 @@ $[TAB] cp -f $[ODIR]/$[local] $[dest] $[output_exe] : $[input_exe] $[TAB] rm -f $[output_exe] -$[TAB] $[bin_postprocess_cmd] $[input_exe] $[bin_postprocess_arg1] $[output_exe] +$[TAB] $[bin_postprocess_cmd] $[bin_postprocess_arg1] $[input_exe] $[bin_postprocess_arg2] $[output_exe] $[install_bin_dir]/$[bin_postprocess_target].exe : $[output_exe] $[TAB] cp -f $[output_exe] $[install_bin_dir] diff --git a/dtool/pptempl/compilerSettings.pp b/dtool/pptempl/compilerSettings.pp index 6b8d1350c6..ded93ef1ab 100644 --- a/dtool/pptempl/compilerSettings.pp +++ b/dtool/pptempl/compilerSettings.pp @@ -44,12 +44,23 @@ // ensure pdbs are copied to install dir #define build_pdbs yes + #define STL_ALLOCATOR VC6 + #elif $[or $[eq $[USE_COMPILER], MSVC7], $[eq $[USE_COMPILER], MSVC7_1]] #define COMPILER cl #define LINKER link #define LIBBER lib + #if $[eq $[USE_COMPILER], MSVC7] + // What is the syntax of the STL allocator declaration? See + // LocalSetup.pp for allowable values. + #define STL_ALLOCATOR MODERN + #else + // until I figure out how to get rid of 'rebind' vc7.1 C4346 build errors + #define STL_ALLOCATOR UNKNOWN + #endif + #if $[eq $[NO_CROSSOBJ_OPT],] #define DO_CROSSOBJ_OPT 1 #endif diff --git a/dtool/src/dtoolbase/dallocator.h b/dtool/src/dtoolbase/dallocator.h index b7f9149ef0..339cff8f2f 100644 --- a/dtool/src/dtoolbase/dallocator.h +++ b/dtool/src/dtoolbase/dallocator.h @@ -87,8 +87,9 @@ public: INLINE pointer allocate(size_type n, allocator::const_pointer hint = 0); INLINE void deallocate(void *p, size_type n); - template - struct rebind { typedef dallocator other; }; + template struct rebind { + typedef dallocator other; + }; }; #else