Menu

#20 conflict on OSX Snow Leopard with gl.h

closed
nobody
None
5
2012-09-15
2009-09-23
Anonymous
No

glew.h declarations conflcts with gl.h on OSX Snow Leopard

Resolution consists in adding

define __X_GL_H

to the glew.h file with the other define sequences of GL_H, gl_h, etc.

Discussion

  • Nigel Stewart

    Nigel Stewart - 2009-12-01

    Confirming this.
    It appears to be an Apple invention.

    /Developer/SDKs/MacOSX10.6.sdk/usr/X11/include/GL/gl.h

    ifndef __X_GL_H

    define __X_GL_H

    ...

     
  • Nigel Stewart

    Nigel Stewart - 2009-12-01

    Proposed patch:

    Index: auto/src/glew_head.h

    --- auto/src/glew_head.h (revision 564)
    +++ auto/src/glew_head.h (working copy)
    @@ -2,7 +2,7 @@
    #define glew_h
    #define GLEW_H

    -#if defined(gl_h_) || defined(GL_H)
    +#if defined(
    gl_h_) || defined(GL_H) || defined(X_GL_H)
    #error gl.h included before glew.h
    #endif
    #if defined(
    glext_h_) || defined(__GLEXT_H_)
    @@ -14,6 +14,7 @@

    #define gl_h_
    #define
    GL_H
    +#define
    X_GL_H
    #define glext_h_
    #define
    GLEXT_H_
    #define __gl_ATI_h_

     
  • Nigel Stewart

    Nigel Stewart - 2009-12-03

    Fixed in revision 565.

    Thanks for the report.

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).