Skip to content

Commit

Permalink
plugin-kbindicator: Undef the "explicit" workaround
Browse files Browse the repository at this point in the history
..after include and add explanation of the workaround.

closes lxqt/lxqt#1251
  • Loading branch information
palinek committed Jan 30, 2017
1 parent 3131775 commit ec62109
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugin-kbindicator/src/x11/kbdlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,15 @@

#include <xkbcommon/xkbcommon-x11.h>
#include <xcb/xcb.h>

// Note: We need to override "explicit" as this is a C++ keyword. But it is
// used as variable name in xkb.h. This is causing a failure in C++ compile
// time.
// Similar bug here: https://bugs.freedesktop.org/show_bug.cgi?id=74080
#define explicit _explicit
#include <xcb/xkb.h>
#undef explicit

#include "../kbdinfo.h"
#include "../controls.h"

Expand Down

0 comments on commit ec62109

Please sign in to comment.