Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/screen.c @ 2333:69d292ccf196
Fix multiple declarations issue with COLOR_ATTRIB
This fails compilation with GCC 10 or -fno-common in CFLAGS.
Link: https://bugs.gentoo.org/707418
author | Andrey Utkin <andrey_utkin@gentoo.org> |
---|---|
date | Mon, 17 Feb 2020 23:40:49 +0000 |
parents | 1e24d93746d6 |
children | 6ad3cada768c |
comparison
equal
deleted
inserted
replaced
2332:645d3ef1c88e | 2333:69d292ccf196 |
---|---|
56 #include "histolog.h" | 56 #include "histolog.h" |
57 #include "settings.h" | 57 #include "settings.h" |
58 #include "utils.h" | 58 #include "utils.h" |
59 #include "xmpp.h" | 59 #include "xmpp.h" |
60 #include "main.h" | 60 #include "main.h" |
61 | |
62 int COLOR_ATTRIB[COLOR_max]; | |
61 | 63 |
62 #define get_color(col) (COLOR_PAIR(col)|COLOR_ATTRIB[col]) | 64 #define get_color(col) (COLOR_PAIR(col)|COLOR_ATTRIB[col]) |
63 #define compose_color(col) (COLOR_PAIR(col->color_pair)|col->color_attrib) | 65 #define compose_color(col) (COLOR_PAIR(col->color_pair)|col->color_attrib) |
64 | 66 |
65 #define DEFAULT_LOG_WIN_HEIGHT (5+2) | 67 #define DEFAULT_LOG_WIN_HEIGHT (5+2) |