Khronos Public Bugzilla
Bug 762 - .spec file MacOSX issue with GLhandleARB.
: .spec file MacOSX issue with GLhandleARB.
Status: NEW
Product: OpenGL
Classification: Unclassified
Component: Registry
: 4.3
: PC Windows
: P3 normal
: ---
Assigned To: Jon Leech
:
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-05 11:32 PST by Alfonse
Modified: 2013-01-05 11:32 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alfonse 2013-01-05 11:32:57 PST
In the .spec file, it defines GLhandleARB as `unsigned int` for all platforms. However, the MacOSX Cocoa header `gltypes.h` defines it as `void*`. This causes a conflict.

Both GLEW (https://sourceforge.net/p/glew/bugs/206/) and glLoadGen (https://bitbucket.org/alfonse/glloadgen/issue/33/mac-compilation-error) have encountered this issue, and simply ifdef-ing around `gltypes.h` is probably not a reliable solution.

You should get with Apple and figure out what they want their GLhandleARB to be defined as, and provide an appropriate #ifdef around it for other platforms.