wmifinfo: Use extern when declaring global variables in header file.
Avoids a FTBFS when compiling with -fno-common, which will be default in GCC 10.
This commit is contained in:
parent
a09edcda9e
commit
342325db8e
|
@ -41,6 +41,12 @@
|
|||
#include "xutils.h"
|
||||
|
||||
|
||||
Display *display;
|
||||
Window Root;
|
||||
Window iconwin, win;
|
||||
int screen;
|
||||
int DisplayDepth;
|
||||
|
||||
|
||||
/*
|
||||
* X11 Variables
|
||||
|
|
|
@ -18,11 +18,11 @@ typedef struct {
|
|||
/*
|
||||
* Global variable
|
||||
*/
|
||||
Display *display;
|
||||
Window Root;
|
||||
Window iconwin, win;
|
||||
int screen;
|
||||
int DisplayDepth;
|
||||
extern Display *display;
|
||||
extern Window Root;
|
||||
extern Window iconwin, win;
|
||||
extern int screen;
|
||||
extern int DisplayDepth;
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue