From 7556391d200da81232e72882e489b34aafab8f7d Mon Sep 17 00:00:00 2001 From: George Marques Date: Thu, 5 May 2016 14:10:41 -0300 Subject: [PATCH] Fix build for Windows 64-bits with GCC (cherry picked from commit 81297f0fa1a0f021c5dfe120d0f4419d5cbcb2b5) --- drivers/gl_context/glew.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gl_context/glew.h b/drivers/gl_context/glew.h index 7b66ea97edf..39c8162dead 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