diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-04 02:29:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-04 02:29:22 +0300 |
commit | c428202503a6f57e3f9381af880a6d594aca4c65 (patch) | |
tree | 242296fe51605565b8fd25470af5162c3dce0a6f /src/gui | |
parent | b94678289a5e671fc168ec58525b7aae2a56e6ec (diff) | |
download | manaplus-c428202503a6f57e3f9381af880a6d594aca4c65.tar.gz manaplus-c428202503a6f57e3f9381af880a6d594aca4c65.tar.bz2 manaplus-c428202503a6f57e3f9381af880a6d594aca4c65.tar.xz manaplus-c428202503a6f57e3f9381af880a6d594aca4c65.zip |
Fix compilation with different options.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/itemamountwindow.cpp | 4 | ||||
-rw-r--r-- | src/gui/windows/itemamountwindow.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp index 870d91265..f37e88c46 100644 --- a/src/gui/windows/itemamountwindow.cpp +++ b/src/gui/windows/itemamountwindow.cpp @@ -94,10 +94,12 @@ void ItemAmountWindow::finish(const Item *const item, if (shopWindow) shopWindow->addSellItem(item, amount, price); break; +#ifdef EATHENA_SUPPORT case MailAdd: if (mailEditWindow) mailEditWindow->addItem(item, amount); break; +#endif default: break; } @@ -239,10 +241,12 @@ ItemAmountWindow::ItemAmountWindow(const Usage usage, Window *const parent, // TRANSLATORS: amount window message setCaption(_("Select amount of items to store.")); break; +#ifdef EATHENA_SUPPORT case MailAdd: // TRANSLATORS: amount window message setCaption(_("Select amount of items to send.")); break; +#endif case CartAdd: // TRANSLATORS: amount window message setCaption(_("Select amount of items to store to cart.")); diff --git a/src/gui/windows/itemamountwindow.h b/src/gui/windows/itemamountwindow.h index 92d0341e0..c371ffbaa 100644 --- a/src/gui/windows/itemamountwindow.h +++ b/src/gui/windows/itemamountwindow.h @@ -57,7 +57,9 @@ class ItemAmountWindow final : public Window, ItemSplit, ShopBuyAdd, ShopSellAdd, +#ifdef EATHENA_SUPPORT MailAdd +#endif }; A_DELETE_COPY(ItemAmountWindow) |