Menu

#128 NVIDIA glx headers use a different CPP barrier

closed
5
2012-09-15
2010-04-26
Anonymous
No

NVIDIA's glx.h file uses glx_h as the header barrier. This causes issues like http://crbug.com/41039 if the NVIDIA drivers have been installed.

Proposed change is to add

define glx_h

around line 15 of glew/auto/src/glxew_head.h

Discussion

  • Nigel Stewart

    Nigel Stewart - 2010-04-26

    Proposed fix:

    Index: auto/src/glew_head.h

    --- auto/src/glew_head.h (revision 595)
    +++ auto/src/glew_head.h (working copy)
    @@ -119,7 +119,12 @@
    */

    #include <stddef.h>
    +
    +#ifdef __sgi
    +#include <inttypes.h>
    +#else
    #include <stdint.h>
    +#endif

    #define GLEW_APIENTRY_DEFINED
    #define APIENTRY

     
  • Nigel Stewart

    Nigel Stewart - 2010-04-27

    Fixed in svn as of revision 596.

     
  • Nigel Stewart

    Nigel Stewart - 2010-04-28

    Resolved in GLEW 1.5.4 release.
    Thanks for the report.