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"
|
#include "xutils.h"
|
||||||
|
|
||||||
|
|
||||||
|
Display *display;
|
||||||
|
Window Root;
|
||||||
|
Window iconwin, win;
|
||||||
|
int screen;
|
||||||
|
int DisplayDepth;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* X11 Variables
|
* X11 Variables
|
||||||
|
|
|
@ -18,11 +18,11 @@ typedef struct {
|
||||||
/*
|
/*
|
||||||
* Global variable
|
* Global variable
|
||||||
*/
|
*/
|
||||||
Display *display;
|
extern Display *display;
|
||||||
Window Root;
|
extern Window Root;
|
||||||
Window iconwin, win;
|
extern Window iconwin, win;
|
||||||
int screen;
|
extern int screen;
|
||||||
int DisplayDepth;
|
extern int DisplayDepth;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue