alternative way of fixing fstat header conflict from r3276 (in case older/other compilers were relying on it), this is only used by netplay.cpp

This commit is contained in:
rainwarrior 2016-08-24 23:23:41 +00:00
parent f7a50ad163
commit 89a75e28fc
2 changed files with 4 additions and 1 deletions

View File

@ -119,7 +119,7 @@ int FCEUNET_SendFile(uint8 cmd, char *fn)
if(!(fp=FCEUD_UTF8fopen(fn,"rb"))) return(0);
fstat(fileno(fp),&sb);
FCEUX_fstat(fileno(fp),&sb);
len = sb.st_size;
buf = (char*)FCEU_dmalloc(len); //mbg merge 7/17/06 added cast
fread(buf, 1, len, fp);

View File

@ -47,6 +47,7 @@ typedef signed int int32;
#define mkdir _mkdir
#define alloca _alloca
#define snprintf _snprintf
#define FCEUX_fstat _fstat
#if _MSC_VER < 1500
#define vsnprintf _vsnprintf
#endif
@ -73,6 +74,8 @@ typedef int32_t int32;
typedef uint8_t uint8;
typedef uint16_t uint16;
typedef uint32_t uint32;
#define FCEUX_fstat fstat
#endif
#ifdef __GNUC__