From 81297f0fa1a0f021c5dfe120d0f4419d5cbcb2b5 Mon Sep 17 00:00:00 2001 From: George Marques Date: Thu, 5 May 2016 14:10:41 -0300 Subject: Fix build for Windows 64-bits with GCC --- drivers/gl_context/glew.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gl_context') 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 -- cgit v1.2.3