intptr_t for VC6
This commit is contained in:
parent
942ebf6562
commit
433dd9b3d2
|
@ -29,6 +29,12 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// intptr_t
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
typedef int intptr_t;
|
||||||
|
#define _INTPTR_T_DEFINED
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <extdll.h>
|
#include <extdll.h>
|
||||||
#include <meta_api.h>
|
#include <meta_api.h>
|
||||||
#include "amxmod.h"
|
#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...
|
// now rewrite because file can be now smaller...
|
||||||
if ( (pFile = fopen(sFile,"w")) == NULL ){
|
if ( (pFile = fopen(sFile,"w")) == NULL ){
|
||||||
amx_RaiseError(amx,AMX_ERR_NATIVE);
|
amx_RaiseError(amx,AMX_ERR_NATIVE);
|
||||||
fclose(pTemp);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user