Fix build for Windows 64-bits with GCC

This commit is contained in:
George Marques 2016-05-05 14:10:41 -03:00
parent 9487a9b3c2
commit 81297f0fa1
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D

View file

@ -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