summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-05-06 10:38:54 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-05-06 10:38:54 +0200
commit78a616eab02ef6397e65873e378982f21ae7b0ab (patch)
treed2e2f60fcb43221a501cc0bbf2dc38851f52c7a7
parentcfd3efd09785301eed733abe9e46fd89da3ad114 (diff)
parent81297f0fa1a0f021c5dfe120d0f4419d5cbcb2b5 (diff)
Merge pull request #4561 from vnen/pr-fix-win64-build
Fix build for Windows 64-bits with GCC
-rw-r--r--drivers/gl_context/glew.h4
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