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:
Doug Torrance 2020-04-17 12:48:48 -04:00 committed by Carlos R. Mafra
parent a09edcda9e
commit 342325db8e
2 changed files with 11 additions and 5 deletions

View file

@ -41,6 +41,12 @@
#include "xutils.h"
Display *display;
Window Root;
Window iconwin, win;
int screen;
int DisplayDepth;
/*
* X11 Variables

View file

@ -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;