summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-10 15:27:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-10 15:27:29 +0300
commit5c2d13948be74b6a66336af3a55179cf61788df4 (patch)
tree8b40a6950fb383970d45afe3c4e763a8d10b92ce /src/gui
parente6c8c84cad923dd53861ef9b99bc6deb44e332a3 (diff)
downloadplus-5c2d13948be74b6a66336af3a55179cf61788df4.tar.gz
plus-5c2d13948be74b6a66336af3a55179cf61788df4.tar.bz2
plus-5c2d13948be74b6a66336af3a55179cf61788df4.tar.xz
plus-5c2d13948be74b6a66336af3a55179cf61788df4.zip
Fix compilation with different flags.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/buydialog.cpp2
-rw-r--r--src/gui/windows/chatwindow.cpp2
-rw-r--r--src/gui/windows/chatwindow.h2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index 809ddf88a..2fbe58ed2 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -392,12 +392,14 @@ void BuyDialog::close()
case Nick:
case Items:
break;
+#ifdef EATHENA_SUPPORT
case Market:
marketHandler->close();
break;
case Cash:
cashShopHandler->close();
break;
+#endif
default:
buySellHandler->close();
break;
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 853d2a51c..b423767c5 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -2127,6 +2127,7 @@ void ChatWindow::debugMessage(const std::string &msg)
debugChatTab->chatLog(msg, ChatMsgType::BY_SERVER);
}
+#ifdef EATHENA_SUPPORT
void ChatWindow::joinRoom(const bool isJoin)
{
Tab *const tab = mChatTabs->getTabByIndex(0);
@@ -2137,3 +2138,4 @@ void ChatWindow::joinRoom(const bool isJoin)
name = _("General");
tab->setCaption(name);
}
+#endif
diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h
index 479d7db6a..c6f9c0d43 100644
--- a/src/gui/windows/chatwindow.h
+++ b/src/gui/windows/chatwindow.h
@@ -209,7 +209,9 @@ class ChatWindow final : public Window,
const bool switchTo,
const bool join) A_WARN_UNUSED;
+#ifdef EATHENA_SUPPORT
void joinRoom(const bool isJoin);
+#endif
void removeAllWhispers();