From f7f67ff6f93e836309f43f13f4ccc286156d64c7 Mon Sep 17 00:00:00 2001 From: Zach Bacon Date: Wed, 14 Dec 2016 16:52:45 -0500 Subject: [PATCH] Fixed compiling without sfml. --- src/wx/cmdevents.cpp | 3 ++- src/wx/panel.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wx/cmdevents.cpp b/src/wx/cmdevents.cpp index b2663043..c0836784 100644 --- a/src/wx/cmdevents.cpp +++ b/src/wx/cmdevents.cpp @@ -2489,11 +2489,12 @@ EVT_HANDLER(Printer, "Enable printer emulation") { GetMenuOptionInt("Printer", winGbPrinterEnabled, 1); #if (defined __WIN32__ || defined _WIN32) +#ifndef NO_LINK gbSerialFunction = gbStartLink; #else gbSerialFunction = NULL; #endif - +#endif if (winGbPrinterEnabled) gbSerialFunction = gbPrinterSend; diff --git a/src/wx/panel.cpp b/src/wx/panel.cpp index b95eb9c1..d08152c7 100644 --- a/src/wx/panel.cpp +++ b/src/wx/panel.cpp @@ -307,9 +307,11 @@ void GameArea::LoadGame(const wxString& name) mf->cmd_enable |= loaded == IMAGE_GB ? CMDEN_GB : (CMDEN_GBA | CMDEN_NGDB_GBA); mf->enable_menus(); #if (defined __WIN32__ || defined _WIN32) +#ifndef NO_LINK gbSerialFunction = gbStartLink; #else gbSerialFunction = NULL; +#endif #endif // probably only need to do this for GB carts