Public bug reported:

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;

** Affects: x11proto-input (Ubuntu)
     Importance: Undecided
         Status: New

-- 
/usr/include/X11/extensions/XIproto.h contains reserved C++ keyword
https://bugs.launchpad.net/bugs/284603
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to