mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
vc7.1 fixes
This commit is contained in:
parent
d99b1ff360
commit
bda142a078
@ -44,7 +44,7 @@
|
||||
// ensure pdbs are copied to install dir
|
||||
#define build_pdbs yes
|
||||
|
||||
#elif $[eq $[USE_COMPILER], MSVC7]
|
||||
#elif $[or $[eq $[USE_COMPILER], MSVC7], $[eq $[USE_COMPILER], MSVC7_1]]
|
||||
|
||||
#define COMPILER cl
|
||||
#define LINKER link
|
||||
|
@ -49,8 +49,13 @@
|
||||
#pragma warning (disable : 4244)
|
||||
|
||||
#if _MSC_VER >= 1300
|
||||
#if _MSC_VER >= 1310
|
||||
#define USING_MSVC7_1
|
||||
//#pragma message("VC 7.1")
|
||||
#else
|
||||
//#pragma message("VC 7.0")
|
||||
#endif
|
||||
#define USING_MSVC7
|
||||
//#pragma message("VC 7.0")
|
||||
#else
|
||||
// #pragma message("VC 6.0")
|
||||
#endif
|
||||
|
@ -72,15 +72,17 @@ deallocate(void *p, allocator<Type>::size_type) {
|
||||
|
||||
#elif MODERN_STYLE_ALLOCATOR
|
||||
|
||||
|
||||
|
||||
template<class Type>
|
||||
INLINE pallocator<Type>::
|
||||
pallocator() throw() {
|
||||
}
|
||||
|
||||
template<class Type>
|
||||
INLINE pallocator<Type>::pointer pallocator<Type>::
|
||||
allocate(pallocator<Type>::size_type n, allocator<void>::const_pointer) {
|
||||
return (pallocator<Type>::pointer)(*global_operator_new)(n * sizeof(Type));
|
||||
INLINE typename pallocator<Type>::pointer pallocator<Type>::
|
||||
allocate(typename pallocator<Type>::size_type n, typename allocator<void>::const_pointer) {
|
||||
return (typename pallocator<Type>::pointer)(*global_operator_new)(n * sizeof(Type));
|
||||
}
|
||||
|
||||
template<class Type>
|
||||
|
Loading…
x
Reference in New Issue
Block a user