1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2026-10-10 03:43:06 +08:00

Fix c++20 compatibility

This commit is contained in:
Peace-Maker
2026-09-02 17:13:06 +02:00
parent 016cfd4f95
commit 6f0c3d9d8e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ public:
virtual bool EndOfFile( FileHandle_t file ) = 0; virtual bool EndOfFile( FileHandle_t file ) = 0;
virtual char *ReadLine( char *pOutput, int maxChars, FileHandle_t file ) = 0; virtual char *ReadLine( char *pOutput, int maxChars, FileHandle_t file ) = 0;
virtual int FPrintf( FileHandle_t file, char *pFormat, ... ) = 0; virtual int FPrintf( FileHandle_t file, const char *pFormat, ... ) = 0;
//-------------------------------------------------------- //--------------------------------------------------------
// Dynamic library operations // Dynamic library operations
+1 -1
View File
@@ -114,7 +114,7 @@ public:
virtual bool IsOk( FileHandle_t file ) { return m_pFileSystemPassThru->IsOk( file ); } virtual bool IsOk( FileHandle_t file ) { return m_pFileSystemPassThru->IsOk( file ); }
virtual bool EndOfFile( FileHandle_t file ) { return m_pFileSystemPassThru->EndOfFile( file ); } virtual bool EndOfFile( FileHandle_t file ) { return m_pFileSystemPassThru->EndOfFile( file ); }
virtual char *ReadLine( char *pOutput, int maxChars, FileHandle_t file ) { return m_pFileSystemPassThru->ReadLine( pOutput, maxChars, file ); } virtual char *ReadLine( char *pOutput, int maxChars, FileHandle_t file ) { return m_pFileSystemPassThru->ReadLine( pOutput, maxChars, file ); }
virtual int FPrintf( FileHandle_t file, char *pFormat, ... ) virtual int FPrintf( FileHandle_t file, const char *pFormat, ... )
{ {
char _fmt[] = "%s"; char _fmt[] = "%s";
char str[8192]; char str[8192];