Fix `FT_UINT_TO_POINTER' macro for Windows.

* builds/unix/ftconfig.in, builds/vms/ftconfig.h,
include/freetype/config/ftconfig.h (FT_UINT_TO_POINTER) [_WIN64]:
Fix definition.
This commit is contained in:
Hin-Tak Leung 2017-05-12 07:52:36 +02:00 committed by Werner Lemberg
parent 2e209c6cbe
commit 603121c050
4 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2017-05-12 Hin-Tak Leung <htl10@users.sourceforge.net>
Fix `FT_UINT_TO_POINTER' macro for Windows.
* builds/unix/ftconfig.in, builds/vms/ftconfig.h,
include/freetype/config/ftconfig.h (FT_UINT_TO_POINTER) [_WIN64]:
Fix definition.
2017-05-11 Sascha Brawer <sascha@google.com>
Werner Lemberg <wl@gnu.org

View File

@ -368,7 +368,7 @@ FT_BEGIN_HEADER
#ifdef _WIN64
/* only 64bit Windows uses the LLP64 data model, i.e., */
/* 32bit integers, 64bit pointers */
#define FT_UINT_TO_POINTER( x ) (void*)(FT_UInt64)(x)
#define FT_UINT_TO_POINTER( x ) (void*)(unsigned __int64)(x)
#else
#define FT_UINT_TO_POINTER( x ) (void*)(unsigned long)(x)
#endif

View File

@ -309,7 +309,7 @@ FT_BEGIN_HEADER
#ifdef _WIN64
/* only 64bit Windows uses the LLP64 data model, i.e., */
/* 32bit integers, 64bit pointers */
#define FT_UINT_TO_POINTER( x ) (void*)(FT_UInt64)(x)
#define FT_UINT_TO_POINTER( x ) (void*)(unsigned __int64)(x)
#else
#define FT_UINT_TO_POINTER( x ) (void*)(unsigned long)(x)
#endif

View File

@ -336,7 +336,7 @@ FT_BEGIN_HEADER
#ifdef _WIN64
/* only 64bit Windows uses the LLP64 data model, i.e., */
/* 32bit integers, 64bit pointers */
#define FT_UINT_TO_POINTER( x ) (void*)(FT_UInt64)(x)
#define FT_UINT_TO_POINTER( x ) (void*)(unsigned __int64)(x)
#else
#define FT_UINT_TO_POINTER( x ) (void*)(unsigned long)(x)
#endif