mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 12:36:05 +08:00
Fixed conflict between min/max macros and std::min/max when using GCC >= 4.2.
This commit is contained in:
@ -544,7 +544,7 @@ void CZipFile::ParseFromBuffer( void *buffer, int bufferlength )
|
||||
if ( rec.commentLength )
|
||||
{
|
||||
char commentString[128];
|
||||
int commentLength = min( rec.commentLength, sizeof( commentString ) );
|
||||
int commentLength = MIN( rec.commentLength, sizeof( commentString ) );
|
||||
buf.Get( commentString, commentLength );
|
||||
commentString[commentLength] = '\0';
|
||||
ParseXZipCommentString( commentString );
|
||||
@ -673,7 +673,7 @@ HANDLE CZipFile::ParseFromDisk( const char *pFilename )
|
||||
if ( rec.commentLength )
|
||||
{
|
||||
char commentString[128];
|
||||
int commentLength = min( rec.commentLength, sizeof( commentString ) );
|
||||
int commentLength = MIN( rec.commentLength, sizeof( commentString ) );
|
||||
CWin32File::FileRead( hFile, commentString, commentLength );
|
||||
commentString[commentLength] = '\0';
|
||||
ParseXZipCommentString( commentString );
|
||||
|
Reference in New Issue
Block a user