[PATCH v2 libXi] Require XFixes for PointerBarrier, remove duplicate typedef
Julien Cristau
jcristau at debian.org
Thu Apr 4 11:28:02 PDT 2013
On Thu, Mar 28, 2013 at 09:24:57 +1000, Peter Hutterer wrote:
> The PointerBarrier typedef is duplicate if a client includes both Xfixes.h
> and XInput2.h.
>
> gcc 4.6 won't complain about that, but earlier versions do:
> http://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ce3765bf44e49ef0568a1ad4a0b7f807591d6412
>
> gcc 4.6 with -pedantic-errors shows:
> /opt/xorg/include/X11/extensions/XInput2.h:172:13: error: redefinition of
> typedef ‘PointerBarrier’ [-pedantic]
> In file included from test.c:1:0:
> /opt/xorg/include/X11/extensions/Xfixes.h:255:13: note: previous declaration
> of ‘PointerBarrier’ was here
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
Reviewed-by: Julien Cristau <jcristau at debian.org>
Cheers,
Julien
More information about the xorg-devel
mailing list