Fixed NO_LINK build.

This commit is contained in:
skidau 2015-03-23 06:38:51 +00:00
parent b3903da2ce
commit 0db7dfc323
3 changed files with 8 additions and 8 deletions

View File

@ -14,8 +14,6 @@
#define snprintf _snprintf
#endif
#ifndef NO_LINK
static int vbaid = 0;
const char *MakeInstanceFilename(const char *Input)
{
@ -32,6 +30,8 @@ const char *MakeInstanceFilename(const char *Input)
return result;
}
#ifndef NO_LINK
// The usual min/max functions for built-in types.
//
// template<typename T> T min( T x, T y ) { return x < y ? x : y; }
@ -2691,5 +2691,6 @@ void lclient::Send() {
lanlink.tcpsocket.Send(outbuffer, 4);
return;
}
#else
bool gba_joybus_active = false;
#endif

View File

@ -293,9 +293,6 @@ void LinkOptions::UpdateAvailability()
GetDlgItem(IDC_LINK4P)->EnableWindow(isNetwork && m_server);
}
#endif // NO_LINK
void LinkOptions::OnBnClickedLinkServer()
{
UpdateData(TRUE);
@ -308,3 +305,5 @@ void LinkOptions::OnBnClickedLinkClient()
UpdateData(TRUE);
UpdateAvailability();
}
#endif // NO_LINK

View File

@ -354,9 +354,9 @@ VBA::~VBA()
*p = 0;
regInit(winBuffer);
#ifndef NO_LINK
CloseLink();
#endif
saveSettings();
if(moviePlaying) {