diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-16 13:54:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-16 13:54:33 +0300 |
commit | ce87c6e969dd2af24e50341e6da86918d4cf52a6 (patch) | |
tree | 273468e1e26c75bfcff3fc02b823b166f8dd5cac /src/gui/windows/whoisonline.h | |
parent | 5b8f189276b3883253de31d5e7bbbf897d34c85b (diff) | |
download | plus-ce87c6e969dd2af24e50341e6da86918d4cf52a6.tar.gz plus-ce87c6e969dd2af24e50341e6da86918d4cf52a6.tar.bz2 plus-ce87c6e969dd2af24e50341e6da86918d4cf52a6.tar.xz plus-ce87c6e969dd2af24e50341e6da86918d4cf52a6.zip |
Use some tmwa related code in whoisonline only if build for tmwa.
Diffstat (limited to 'src/gui/windows/whoisonline.h')
-rw-r--r-- | src/gui/windows/whoisonline.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/windows/whoisonline.h b/src/gui/windows/whoisonline.h index a1cafa8ae..1a8f1c1c9 100644 --- a/src/gui/windows/whoisonline.h +++ b/src/gui/windows/whoisonline.h @@ -64,10 +64,12 @@ class WhoIsOnline final : public Window, void postInit() override final; +#ifdef TMWA_SUPPORT /** * Loads and display online list from the memory buffer. */ void loadWebList(); +#endif void loadList(const std::vector<OnlinePlayer*> &list); @@ -108,6 +110,8 @@ class WhoIsOnline final : public Window, void handlerPlayerRelation(const std::string &nick, OnlinePlayer *const player); + +#ifdef TMWA_SUPPORT /** * The thread function that download the files. */ @@ -119,6 +123,7 @@ class WhoIsOnline final : public Window, static size_t memoryWrite(void *ptr, size_t size, size_t nmemb, FILE *stream); +#endif const std::string prepareNick(const std::string &restrict nick, const int level, |