mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-10 03:43:06 +08:00
Fix for tier1 & mathlib compilation
This commit is contained in:
@@ -1591,7 +1591,7 @@ float Hermite_Spline(
|
||||
float t );
|
||||
|
||||
|
||||
void Hermite_SplineBasis( float t, float basis[] );
|
||||
void Hermite_SplineBasis( float t, float basis[4] );
|
||||
|
||||
void Hermite_Spline(
|
||||
const Quaternion &q0,
|
||||
|
||||
@@ -778,9 +778,9 @@ private:
|
||||
|
||||
inline CVProfNode::CVProfNode( const tchar * pszName, int detailLevel, CVProfNode *pParent, const tchar *pBudgetGroupName, int budgetFlags )
|
||||
: m_pszName( pszName ),
|
||||
m_nRecursions( 0 ),
|
||||
m_nCurFrameCalls( 0 ),
|
||||
m_nPrevFrameCalls( 0 ),
|
||||
m_nRecursions( 0 ),
|
||||
m_pParent( pParent ),
|
||||
m_pChild( NULL ),
|
||||
m_pSibling( NULL ),
|
||||
|
||||
@@ -150,13 +150,13 @@ private:
|
||||
//-----------------------------------------------------------------------------
|
||||
template <class T, class LessFunc, class BaseVector>
|
||||
CUtlSortVector<T, LessFunc, BaseVector>::CUtlSortVector( int nGrowSize, int initSize ) :
|
||||
m_pLessContext(NULL), BaseVector( nGrowSize, initSize ), m_bNeedsSort( false )
|
||||
BaseVector( nGrowSize, initSize ), m_pLessContext(NULL), m_bNeedsSort( false )
|
||||
{
|
||||
}
|
||||
|
||||
template <class T, class LessFunc, class BaseVector>
|
||||
CUtlSortVector<T, LessFunc, BaseVector>::CUtlSortVector( T* pMemory, int numElements ) :
|
||||
m_pLessContext(NULL), BaseVector( pMemory, numElements ), m_bNeedsSort( false )
|
||||
BaseVector( pMemory, numElements ), m_pLessContext(NULL), m_bNeedsSort( false )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -121,12 +121,11 @@ public:
|
||||
// Use this for va_list formatting
|
||||
const char *sprintf_argv(const char *pszFormat, va_list arg_ptr)
|
||||
{
|
||||
int result;
|
||||
bool bTruncated = false;
|
||||
static int s_nWarned = 0;
|
||||
|
||||
InitQuietTruncation();
|
||||
result = V_vsnprintfRet( m_szBuf, SIZE_BUF - 1, pszFormat, arg_ptr, &bTruncated );
|
||||
V_vsnprintfRet( m_szBuf, SIZE_BUF - 1, pszFormat, arg_ptr, &bTruncated );
|
||||
m_szBuf[SIZE_BUF - 1] = 0;
|
||||
if ( bTruncated && !m_bQuietTruncation && ( s_nWarned < 5 ) )
|
||||
{
|
||||
|
||||
+1
-1
@@ -231,12 +231,12 @@ class CKeyValuesGrowableStringTable
|
||||
public:
|
||||
// Constructor
|
||||
CKeyValuesGrowableStringTable() :
|
||||
m_hashLookup( 2048, 0, 0, m_Functor, m_Functor ),
|
||||
#ifdef PLATFORM_64BITS
|
||||
m_vecStrings( 0, 4 * 512 * 1024 )
|
||||
#else
|
||||
m_vecStrings( 0, 512 * 1024 )
|
||||
#endif
|
||||
, m_hashLookup( 2048, 0, 0, m_Functor, m_Functor )
|
||||
{
|
||||
m_vecStrings.AddToTail( '\0' );
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
static void MD5Transform(unsigned int buf[4], unsigned int const in[16])
|
||||
{
|
||||
register unsigned int a, b, c, d;
|
||||
unsigned int a, b, c, d;
|
||||
|
||||
a = buf[0];
|
||||
b = buf[1];
|
||||
|
||||
@@ -49,7 +49,6 @@
|
||||
#include <sys/statvfs.h>
|
||||
#endif
|
||||
#include <sched.h>
|
||||
#define int64 int64_t
|
||||
|
||||
#define _A_SUBDIR S_IFDIR
|
||||
|
||||
|
||||
+5
-4
@@ -31,16 +31,17 @@ MEMALLOC_DEFINE_EXTERNAL_TRACKING(CMemoryStack);
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
CMemoryStack::CMemoryStack()
|
||||
: m_pBase( NULL ),
|
||||
:
|
||||
m_pNextAlloc( NULL ),
|
||||
m_pAllocLimit( NULL ),
|
||||
m_pCommitLimit( NULL ),
|
||||
m_alignment( 16 ),
|
||||
m_pAllocLimit( NULL ),
|
||||
m_pBase( NULL ),
|
||||
#if defined(_WIN32)
|
||||
m_commitSize( 0 ),
|
||||
m_minCommit( 0 ),
|
||||
#endif
|
||||
m_maxSize( 0 )
|
||||
m_maxSize( 0 ),
|
||||
m_alignment( 16 )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user