Only noticing, Naming collision with X.h

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Only noticing, Naming collision with X.h

Postby Pompei2 » Fri Mar 02, 2007 22:34

Hello.

I noticed that when using linux, if you somehow (sdl, xgl, ...) include X.h AND cegui/elements/CEGUIListHeaderSegment.h, you will have a naming collision:

None

is a #define in X.h and a enum in CEGUI.
I solved this problem for my by playing around with my includes, but this could cause more trouble to others. I wonder that nobody complained about it yet.

Don't know if you can change this ... this would be a breaking change :(

I saw that Qt defines a "None" somewhere too ...

Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 6 guests