Fixed compiling without sfml.

This commit is contained in:
Zach Bacon 2016-12-14 16:52:45 -05:00
parent c2a23a9ffe
commit f7f67ff6f9
2 changed files with 4 additions and 1 deletions

View File

@ -2489,11 +2489,12 @@ EVT_HANDLER(Printer, "Enable printer emulation")
{ {
GetMenuOptionInt("Printer", winGbPrinterEnabled, 1); GetMenuOptionInt("Printer", winGbPrinterEnabled, 1);
#if (defined __WIN32__ || defined _WIN32) #if (defined __WIN32__ || defined _WIN32)
#ifndef NO_LINK
gbSerialFunction = gbStartLink; gbSerialFunction = gbStartLink;
#else #else
gbSerialFunction = NULL; gbSerialFunction = NULL;
#endif #endif
#endif
if (winGbPrinterEnabled) if (winGbPrinterEnabled)
gbSerialFunction = gbPrinterSend; gbSerialFunction = gbPrinterSend;

View File

@ -307,9 +307,11 @@ void GameArea::LoadGame(const wxString& name)
mf->cmd_enable |= loaded == IMAGE_GB ? CMDEN_GB : (CMDEN_GBA | CMDEN_NGDB_GBA); mf->cmd_enable |= loaded == IMAGE_GB ? CMDEN_GB : (CMDEN_GBA | CMDEN_NGDB_GBA);
mf->enable_menus(); mf->enable_menus();
#if (defined __WIN32__ || defined _WIN32) #if (defined __WIN32__ || defined _WIN32)
#ifndef NO_LINK
gbSerialFunction = gbStartLink; gbSerialFunction = gbStartLink;
#else #else
gbSerialFunction = NULL; gbSerialFunction = NULL;
#endif
#endif #endif
// probably only need to do this for GB carts // probably only need to do this for GB carts