Browse Source

Fix multiple definition of xdg variable.

Recent GCC versions enable the -fno-common flag by default, causing
compilation to fail due to the global xdg variable being declared both
in the header file and in the implementation file. Fix by declaring the
variable in the header file as "extern", as it should have been.

closes #8
master
Damien Goutte-Gattat 4 months ago
parent
commit
3bc8ad6145
  1. 2
      lib/xdg.h

2
lib/xdg.h

@ -26,7 +26,7 @@ typedef struct {
#undef XDG_VAR
} xdg_t;
xdg_t *xdg;
extern xdg_t *xdg;
#ifdef __cplusplus
extern "C" {

Loading…
Cancel
Save