Bugs item #1844243, was opened at 2007-12-04 09:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100003&aid=1844243&group_id=3
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: GLX header definition
Initial Comment:
In the header glx.h, all functions declarations are not encapsulated into the
consistent definitions (e.g. "#ifndef GLX_VERSION_1_x"). All defines are set at
the beginning of the header file ("#define GLX_VERSION_1_1 1",
etc)
This makes it difficult to mix environments, e.g. using glew in an application
depending on a library using glx.h
problems occurs when functions definitions use system types instead of GL
types, e.g. "long unsigned int" instead of "GLuint"
and compiling returns:
/usr/include/GL/glx.h:202: error: declaration of C function 'void
glXCopyContext(Display*, __GLXcontextRec*, __GLXcontextRec*, long unsigned
int)' conflicts with
/usr/include/GL/glxew.h:118: error: previous declaration 'void
glXCopyContext(Display*, __GLXcontextRec*, __GLXcontextRec*, GLuint)' here
2 solutions to solve this:
1. Correctly encapsulate all the function/value declarations in the consistent
definitions (like glew does)
#ifndef GLX_VERSION_1_x
#define GLX_VERSION_1_x
...
#endif
2. Correct the functions declarations, using the consistent GL types (e.g.
GLuint)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100003&aid=1844243&group_id=3
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev