wmaker: Replaced local 'extern' definition by proper header include
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 30 Jun 2013 14:02:34 +0000 (30 16:02 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 30 Jun 2013 14:10:09 +0000 (30 15:10 +0100)
It is dangerous to define an extern variable locally because the
compiler is not able to ensure proper type definition, but including
the header that defines it allows a safer situation.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/xmodifier.c

index 30f5a88..e114f65 100644 (file)
@@ -36,9 +36,9 @@ Perpetrator: Sudish Joseph <sj@eng.mindspring.net>, Sept. 1997. */
 #include <X11/XKBlib.h>
 
 #include <WINGs/WUtil.h>
+#include "WindowMaker.h"
 #include "xmodifier.h"
 
-extern Display *dpy;
 
 /************************************************************************/
 /*                            keymap handling                           */