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" #include "xutils.h"
Display *display;
Window Root;
Window iconwin, win;
int screen;
int DisplayDepth;
/* /*
* X11 Variables * X11 Variables

View file

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