<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Can't include gl and gles headers simultaneously on non-64 bit architectures"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105328#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Can't include gl and gles headers simultaneously on non-64 bit architectures"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105328">bug 105328</a>
from <span class="vcard"><a class="email" href="mailto:brianp@vmware.com" title="Brian Paul <brianp@vmware.com>"> <span class="fn">Brian Paul</span></a>
</span></b>
<pre>
Evidently, the problem with the 32-bit build is that ptrdiff_t is not
equivalent to signed long int.
This hack works for me:
#include <stddef.h>
#include <GLES2/gl2.h>
#define GL_VERSION_1_5
#include <GL/gl.h>
int main (int argc, char **argv) { return 0; }
This basically causes the GL_VERSION_1_5 section in glext.h to be skipped. If
you need definitions from that section, you'd probably have to copy&paste them.
I proper fix would probably involve adding #ifndef GLSIZEIPTR / #endif guards
around the typedefs. That would have to be done upstream in the Khronos
headers.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>