Lift FT_Int64 type to global (internal) FreeType use.

* src/base/ftcalc.c (FT_Int64) [!FT_INT64]: Move declaration to...
* include/freetype/config/integer-types.h: ... this file.
  (FT_UInt64) [!FT_INT64]: New structure.
  (FT_INT64_ZERO): New macro.
This commit is contained in:
Behdad Esfahbod
2025-05-26 08:16:53 +02:00
committed by Werner Lemberg
parent b8444f2fbb
commit 8eae039923
2 changed files with 25 additions and 13 deletions

View File

@@ -244,9 +244,33 @@ FT_BEGIN_HEADER
#endif /* FT_SIZEOF_LONG == (64 / FT_CHAR_BIT) */
#ifdef FT_INT64
typedef FT_INT64 FT_Int64;
typedef FT_UINT64 FT_UInt64;
#endif
# define FT_INT64_ZERO 0
#else /* !FT_INT64 */
/* we need to emulate 64-bit data types if none are available */
typedef struct FT_Int64_
{
FT_UInt32 lo;
FT_UInt32 hi;
} FT_Int64;
typedef struct FT_UInt64_
{
FT_UInt32 lo;
FT_UInt32 hi;
} FT_UInt64;
# define FT_INT64_ZERO { 0, 0 }
#endif /* !FT_INT64 */
FT_END_HEADER

View File

@@ -43,18 +43,6 @@
#undef FT_MulFix
#endif
/* we need to emulate a 64-bit data type if one isn't available */
#ifndef FT_INT64
typedef struct FT_Int64_
{
FT_UInt32 lo;
FT_UInt32 hi;
} FT_Int64;
#endif /* !FT_INT64 */
/**************************************************************************
*