mirror of
https://github.com/nigels-com/glew.git
synced 2025-01-19 11:05:48 +00:00
added ptrdiff_t definition on windows
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@197 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
fa4edc5834
commit
3df85f4a9b
@ -70,6 +70,7 @@ static GLuint _glewInit ()
|
|||||||
GLEW_VERSION_1_2 = GL_TRUE;
|
GLEW_VERSION_1_2 = GL_TRUE;
|
||||||
GLEW_VERSION_1_3 = GL_TRUE;
|
GLEW_VERSION_1_3 = GL_TRUE;
|
||||||
GLEW_VERSION_1_4 = GL_TRUE;
|
GLEW_VERSION_1_4 = GL_TRUE;
|
||||||
|
GLEW_VERSION_1_5 = GL_TRUE;
|
||||||
}
|
}
|
||||||
if (s[2] == '4')
|
if (s[2] == '4')
|
||||||
{
|
{
|
||||||
|
@ -124,19 +124,15 @@
|
|||||||
# define _WCHAR_T_DEFINED
|
# define _WCHAR_T_DEFINED
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
/* <stddef.h> */
|
||||||
/*
|
#ifndef _PTRDIFF_T_DEFINED
|
||||||
* FIXME: the definition of ptrdiff_t is needed here, it's found in
|
# ifdef _WIN64
|
||||||
* stddef.h.
|
typedef __int64 ptrdiff_t;
|
||||||
*
|
# else
|
||||||
* Since Windows doesn't actually _run_ on anything but PCs this will do
|
typedef _W64 int ptrdiff_t;
|
||||||
* for now.
|
# endif
|
||||||
*
|
# define _PTRDIFF_T_DEFINED
|
||||||
* What does the compiler define when the target is a 64 bit platform
|
#endif
|
||||||
* anyway? WIN64?
|
|
||||||
*/
|
|
||||||
|
|
||||||
typedef int ptrdiff_t;
|
|
||||||
|
|
||||||
#ifndef GLAPI
|
#ifndef GLAPI
|
||||||
# if defined(__CYGWIN__) || defined(__MINGW32__)
|
# if defined(__CYGWIN__) || defined(__MINGW32__)
|
||||||
|
Loading…
Reference in New Issue
Block a user