diff options
author | George Marques <george@gmarqu.es> | 2016-05-05 14:10:41 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2016-05-05 14:10:41 -0300 |
commit | 81297f0fa1a0f021c5dfe120d0f4419d5cbcb2b5 (patch) | |
tree | f339a446507e9b8f26b2f95eba4b793bc87ba76c /drivers/gl_context | |
parent | 9487a9b3c25f23942561eba20edce24f4be6f148 (diff) |
Fix build for Windows 64-bits with GCC
Diffstat (limited to 'drivers/gl_context')
-rw-r--r-- | drivers/gl_context/glew.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gl_context/glew.h b/drivers/gl_context/glew.h index 7b66ea97ed..39c8162dea 100644 --- a/drivers/gl_context/glew.h +++ b/drivers/gl_context/glew.h @@ -153,7 +153,11 @@ typedef unsigned short wchar_t; #endif #if !defined(_PTRDIFF_T_DEFINED) && !defined(_PTRDIFF_T_) # ifdef _WIN64 +# ifdef _MSC_VER // Using MSVC typedef __int64 ptrdiff_t; +# else // Using GCC +typedef long int ptrdiff_t; +# endif # else typedef _W64 int ptrdiff_t; # endif |