/usr/include/X11/extensions/XIproto.h contains reserved C++ keyword

Bug #284603 reported by Simon Hausmann
6
Affects Status Importance Assigned to Milestone
x11proto-input (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

The file /usr/include/X11/extensions/XIproto.h cannot be included from C++ programs as it contains the reserved "delete" keyword.

This happens for example when compiling toolkits, such as Qt.

The offending code in question:

typedef struct {
    CARD8 reqType; /* input extension major opcode */
    CARD8 ReqType; /* always X_ChangeDeviceProperty */
    CARD16 length B16;
    Atom property B32;
    Atom type B32;
    CARD32 longOffset B32;
    CARD32 longLength B32;
    CARD8 deviceid;
    BOOL delete;
    CARD16 pad;
} xGetDevicePropertyReq;

Revision history for this message
Bryce Harrington (bryce) wrote :
Changed in x11proto-input:
importance: Undecided → Critical
milestone: none → ubuntu-8.10
status: New → Fix Committed
Revision history for this message
Steve Langasek (vorlon) wrote :

This bug was fixed in the upload of x11proto-input 1.4.3-2ubuntu6. Changelog:

x11proto-input (1.4.3-2ubuntu6) intrepid; urgency=low

  * 101-c-delete.patch: Fixes FTBS issue introduced by previous patch.
    'delete' is a C++ keyword; use c_delete instead when included in
    a C++ codebase.
    (LP: 284603)

 -- Bryce Harrington <email address hidden> Wed, 22 Oct 2008 14:51:01 -0700

Changed in x11proto-input:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.