Fixed linux compilation issues

This commit is contained in:
qeed 2009-10-10 23:12:21 +00:00
parent 6d75c9ce0d
commit 5a2750d160
2 changed files with 4 additions and 4 deletions

View File

@ -238,11 +238,9 @@ readfunc GetReadHandler(int32 a)
else
return ARead[a];
}
void SetReadHandler(int32 start, int32 end, readfunc func)
{
int32 x;
if(!func)
func=ANull;
@ -482,7 +480,9 @@ endlseq:
if(GameInfo->type!=GIT_NSF)
FCEU_LoadGameCheats(0);
#if defined (WIN32) || defined (WIN64)
DoDebuggerRunCheck(); //Can't safely do it in loadPreferences
#endif
return GameInfo;
}
@ -1152,4 +1152,4 @@ uint8 FCEU_ReadRomByte(uint32 i) {
if(i < 16+PRGsize[0])return PRGptr[0][i-16];
if(i < 16+PRGsize[0]+CHRsize[0])return CHRptr[0][i-16-PRGsize[0]];
return 0;
}
}

View File

@ -2179,7 +2179,7 @@ void HandleCallbackError(lua_State* L)
#ifdef WIN32
MessageBox( hAppWnd, lua_tostring(L,-1), "Lua run error", MB_OK | MB_ICONSTOP);
#else
fprintf(stderr, "Lua thread bombed out: %s\n", lua_tostring(LUA,-1));
fprintf(stderr, "Lua thread bombed out: %s\n", lua_tostring(L,-1));
#endif
FCEU_LuaStop();