Last active
February 27, 2020 09:54
-
-
Save ryancheung/40fe7d069d12bae7f97da737128c9d8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From 11aecbddc1a43c2f90f776630a876e7127d8a654 Mon Sep 17 00:00:00 2001 | |
| From: ryancheung <[email protected]> | |
| Date: Thu, 27 Feb 2020 17:42:04 +0800 | |
| Subject: [PATCH] Win64 patch | |
| --- | |
| include/freetype/ftimage.h | 6 +++++- | |
| include/freetype/fttypes.h | 24 ++++++++++++++++++++---- | |
| 2 files changed, 25 insertions(+), 5 deletions(-) | |
| diff --git a/include/freetype/ftimage.h b/include/freetype/ftimage.h | |
| index 79ede19..dd144be 100644 | |
| --- a/include/freetype/ftimage.h | |
| +++ b/include/freetype/ftimage.h | |
| @@ -55,7 +55,11 @@ FT_BEGIN_HEADER | |
| /* on the context, these can represent distances in integer font */ | |
| /* units, or 16.16, or 26.6 fixed-point pixel coordinates. */ | |
| /* */ | |
| - typedef signed long FT_Pos; | |
| +#if _WIN64 | |
| + typedef signed __int64 FT_Pos; | |
| +#else | |
| + typedef signed long FT_Pos; | |
| +#endif | |
| /*************************************************************************/ | |
| diff --git a/include/freetype/fttypes.h b/include/freetype/fttypes.h | |
| index f638c2e..b31fa66 100644 | |
| --- a/include/freetype/fttypes.h | |
| +++ b/include/freetype/fttypes.h | |
| @@ -239,7 +239,11 @@ FT_BEGIN_HEADER | |
| /* <Description> */ | |
| /* A typedef for signed long. */ | |
| /* */ | |
| - typedef signed long FT_Long; | |
| +#if _WIN64 | |
| + typedef signed __int64 FT_Long; | |
| +#else | |
| + typedef signed long FT_Long; | |
| +#endif | |
| /*************************************************************************/ | |
| @@ -250,7 +254,11 @@ FT_BEGIN_HEADER | |
| /* <Description> */ | |
| /* A typedef for unsigned long. */ | |
| /* */ | |
| - typedef unsigned long FT_ULong; | |
| +#if _WIN64 | |
| + typedef unsigned __int64 FT_ULong; | |
| +#else | |
| + typedef unsigned long FT_ULong; | |
| +#endif | |
| /*************************************************************************/ | |
| @@ -273,7 +281,11 @@ FT_BEGIN_HEADER | |
| /* A signed 26.6 fixed-point type used for vectorial pixel */ | |
| /* coordinates. */ | |
| /* */ | |
| - typedef signed long FT_F26Dot6; | |
| +#if _WIN64 | |
| + typedef signed __int64 FT_F26Dot6; | |
| +#else | |
| + typedef unsigned long FT_F26Dot6; | |
| +#endif | |
| /*************************************************************************/ | |
| @@ -285,7 +297,11 @@ FT_BEGIN_HEADER | |
| /* This type is used to store 16.16 fixed-point values, like scaling */ | |
| /* values or matrix coefficients. */ | |
| /* */ | |
| - typedef signed long FT_Fixed; | |
| +#if _WIN64 | |
| + typedef signed __int64 FT_Fixed; | |
| +#else | |
| + typedef unsigned long FT_Fixed; | |
| +#endif | |
| /*************************************************************************/ | |
| -- | |
| 2.19.0.windows.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment