A problem with X11/extensions/Xrandr.h

Tilman Sauerbeck tilman at code-monkey.de
Sun Apr 22 01:18:50 PDT 2007

Pavel Troller [2007-04-22 07:29]:
>   I've found a problem with the XRRGetOutputProperty() function prototype.
>   One of its parameters is "Bool delete", which causes problems, when the file
> file is included from a C++ program - "delete" is a reserved word (operator)
> in C++.
>   It's in XRandr-1.2.
>   For this particular compilation, I've made a quick fix by changing delete
> to _delete and returning it back when finished, but I think that another name
> should be used.

The same fix went into libXrandr-1.2.1:


A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20070422/cb2a58db/attachment.pgp>

More information about the xorg mailing list