Linux build fixes and some warning cleanup for GCC

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2406 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
omegadox
2009-02-24 05:20:52 +00:00
parent 3d9b3ba117
commit 8c93e39ddd
25 changed files with 67 additions and 43 deletions

View File

@ -83,4 +83,5 @@ public:
}
};
#endif // _FIXED_SIZE_QUEUE_H
#endif // _FIXED_SIZE_QUEUE_H

View File

@ -66,4 +66,5 @@
///////////////////////////
#endif // __SETUP_h__
#endif // __SETUP_h__

View File

@ -414,7 +414,7 @@ Thread::~Thread()
}
void Thread::WaitForDeath(const int _Wait)
void Thread::WaitForDeath()
{
if (thread_id)
{

View File

@ -37,7 +37,6 @@
#include "Common.h"
///////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
// Definitions
// ------------
@ -89,7 +88,11 @@ public:
void SetAffinity(int mask);
static void SetCurrentThreadAffinity(int mask);
#ifdef _WIN32
void WaitForDeath(const int _Wait = INFINITE);
#else
void WaitForDeath();
#endif
private:

View File

@ -32,4 +32,5 @@ struct STileMetaContent
// [TODO]: this global internal stuff sux... the whole data should be inside the ES
// but this is the easiest way atm
extern std::vector<STileMetaContent> m_TileMetaContent;
extern std::vector<STileMetaContent> m_TileMetaContent;

View File

@ -302,7 +302,11 @@ void Stop()
if (GetParent((HWND)g_pWindowHandle) == NULL)
#endif
#ifndef SETUP_TIMER_WAITING // This is moved
#ifdef _WIN32
g_EmuThread->WaitForDeath(5000);
#else
g_EmuThread->WaitForDeath();
#endif
delete g_EmuThread; // Wait for emuthread to close.
g_EmuThread = 0;
#endif
@ -575,7 +579,11 @@ void EmuThreadEnd()
if (cpuThread)
{
// There is a CPU thread - join it.
#ifdef _WIN32
cpuThread->WaitForDeath(5000);
#else
cpuThread->WaitForDeath();
#endif
delete cpuThread;
// Returns after game exited
cpuThread = NULL;

View File

@ -40,4 +40,5 @@ void SetSourcePath(const std::string path)
{
sourcePath = path;
}
}
}

View File

@ -28,4 +28,5 @@ namespace SDInterface
void SetSourcePath(const std::string path);
}
#endif
#endif

View File

@ -127,4 +127,5 @@ class wxCheatsWindow : public wxFrame
void OnEvent_CheckBoxEnableLogging_StateChange(wxCommandEvent& event);
};
#endif
#endif

View File

@ -281,7 +281,6 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
wxString::From8BitData(rISOFile.GetDescription((int)SConfig::GetInstance().m_InterfaceLanguage).c_str()), -1);
break;
}
SetItem(_Index, COLUMN_COMPANY, wxString::From8BitData(rISOFile.GetCompany().c_str()), -1);
SetItem(_Index, COLUMN_SIZE, NiceSizeFormat(rISOFile.GetFileSize()), -1);
@ -942,4 +941,5 @@ bool CGameListCtrl::CopySJISToString( wxString& _rDestination, const char* _src
//returnCode = true;
#endif
return returnCode;
}
}

View File

@ -60,4 +60,5 @@ void wxSDCardWindow::OnEvent_Window_Close(wxCloseEvent& WXUNUSED(event))
void wxSDCardWindow::OnEvent_ButtonClose_Press(wxCommandEvent& WXUNUSED(event))
{
EndModal(0);
}
}

View File

@ -42,4 +42,5 @@ protected:
};
#endif
#endif

View File

@ -249,4 +249,5 @@ std::string VKToString(int keycode)
#endif
/////////////////////////////////////////////////////////////////////
}
}

View File

@ -363,4 +363,5 @@ void GetButton(SDL_Joystick *joy, int ControllerID, int buttons, int axes, int h
} // InputCommon
} // InputCommon

View File

@ -42,4 +42,5 @@ bool IsConnected(int Controller);
} // XInput
#endif
#endif

View File

@ -24,4 +24,5 @@ bool SaveTGA(const char* filename, int width, int height, void* pdata);
bool SaveTexture(const char* filename, u32 textarget, u32 tex, int width, int height);
bool SaveData(const char* filename, const char* pdata);
#endif // _IMAGEWRITE_H
#endif // _IMAGEWRITE_H

View File

@ -23,4 +23,5 @@ namespace VertexManager
u8* s_pCurBufferPointer = NULL;
}
}