mirror of
git://git.sv.nongnu.org/freetype/freetype2.git
synced 2026-01-19 04:52:09 +00:00
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:
committed by
Werner Lemberg
parent
b8444f2fbb
commit
8eae039923
@@ -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
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user