mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
possibly fixed windows compilation KKona
This commit is contained in:
parent
b68b0845c1
commit
ca0a42a95f
2 changed files with 10 additions and 2 deletions
|
@ -4,12 +4,12 @@
|
|||
|
||||
namespace chatterino {
|
||||
|
||||
static const char *ANONYMOUS_USERNAME_LABEL __attribute__((unused)) = " - anonymous - ";
|
||||
static const char *ANONYMOUS_USERNAME_LABEL ATTR_UNUSED = " - anonymous - ";
|
||||
|
||||
namespace providers {
|
||||
namespace twitch {
|
||||
|
||||
static const char *ANONYMOUS_USERNAME __attribute__((unused)) = "justinfan64537";
|
||||
static const char *ANONYMOUS_USERNAME ATTR_UNUSED = "justinfan64537";
|
||||
|
||||
} // namespace twitch
|
||||
} // namespace providers
|
||||
|
|
|
@ -157,4 +157,12 @@
|
|||
#define UNUSED(x) (void)(x)
|
||||
#endif
|
||||
|
||||
#ifndef ATTR_UNUSED
|
||||
#ifdef Q_OS_WIN
|
||||
#define ATTR_UNUSED
|
||||
#else
|
||||
#define ATTR_UNUSED __attribute__((unused))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue