From 433dd9b3d2242f2a3b15dae1a8b87f1a41673b87 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Wed, 18 Feb 2004 14:33:31 +0000 Subject: [PATCH] intptr_t for VC6 --- amxmodx/file.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/amxmodx/file.cpp b/amxmodx/file.cpp index ad315957..48dec12c 100755 --- a/amxmodx/file.cpp +++ b/amxmodx/file.cpp @@ -29,6 +29,12 @@ * */ +// intptr_t +#ifdef _MSC_VER + typedef int intptr_t; + #define _INTPTR_T_DEFINED +#endif + #include #include #include "amxmod.h" @@ -188,7 +194,6 @@ static cell AMX_NATIVE_CALL write_file(AMX *amx, cell *params) /* 3 param */ // now rewrite because file can be now smaller... if ( (pFile = fopen(sFile,"w")) == NULL ){ amx_RaiseError(amx,AMX_ERR_NATIVE); - fclose(pTemp); return 0; }