Fix build for Windows 64-bits with GCC
(cherry picked from commit 81297f0fa1
)
This commit is contained in:
parent
23c659fc47
commit
7556391d20
|
@ -153,7 +153,11 @@ typedef unsigned short wchar_t;
|
||||||
#endif
|
#endif
|
||||||
#if !defined(_PTRDIFF_T_DEFINED) && !defined(_PTRDIFF_T_)
|
#if !defined(_PTRDIFF_T_DEFINED) && !defined(_PTRDIFF_T_)
|
||||||
# ifdef _WIN64
|
# ifdef _WIN64
|
||||||
|
# ifdef _MSC_VER // Using MSVC
|
||||||
typedef __int64 ptrdiff_t;
|
typedef __int64 ptrdiff_t;
|
||||||
|
# else // Using GCC
|
||||||
|
typedef long int ptrdiff_t;
|
||||||
|
# endif
|
||||||
# else
|
# else
|
||||||
typedef _W64 int ptrdiff_t;
|
typedef _W64 int ptrdiff_t;
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in New Issue