freetype2/include/freetype
Alex Richardson f7c6a06cb7 Support architectures where `long` is smaller than pointers.
I am currently trying to compile FreeType for CHERI-extended ISAs
(CHERI-RISC-V and Arm's Morello), but I am getting compiler warnings
from the `FT_UINT_TO_POINTER` macro.  When compiling with the CHERI
Clang compiler, not using `uinptr_t` for casts between integers an
pointers results in the following `-Werror` build failures:

```
In file included from .../src/truetype/truetype.c:22:
  .../src/truetype/ttgload.c:1925:22: error:
    cast from provenance-free integer type to pointer type will
    give pointer that can not be dereferenced
    [-Werror,-Wcheri-capability-misuse]
  node->data = FT_UINT_TO_POINTER( glyph_index );
               ^
  .../include/freetype/internal/compiler-macros.h:79:34: note:
    expanded from macro 'FT_UINT_TO_POINTER'
```

* include/freetype/internal/compiler-macros.h (FT_UINT_TO_POINTER):
The ISO C standard compliant fix for this would be to use
`uintptr_t` from `stdint.h`, but I am not sure if this is supported
by the minimum compiler version.  Therefore, use the
compiler-defined `__UINTPTR_TYPE__` macro (supported in GCC 4.6+ and
Clang since about 3.0) before checking for `_WIN64` and falling back
to `unsigned long`.
2021-07-15 12:09:04 +02:00
..
config Small clean-ups for the last few commits. 2021-07-12 22:03:25 +02:00
internal Support architectures where `long` is smaller than pointers. 2021-07-15 12:09:04 +02:00
freetype.h [base] Fix `FT_Open_Face`'s handling of user-supplied streams. 2021-07-13 11:00:48 +02:00
ftadvanc.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftbbox.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftbdf.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftbitmap.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftbzip2.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftcache.h Typo. 2021-04-18 10:24:31 -04:00
ftchapters.h [base] Add public API to change the levels of tracing components. 2020-12-01 09:25:53 +01:00
ftcid.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftcolor.h [sfnt] Support PaintScale in 'COLR' v1 parsing. 2021-07-01 06:49:03 +02:00
ftdriver.h Small clean-ups for the last few commits. 2021-07-12 22:03:25 +02:00
fterrdef.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
fterrors.h fterrors.h: Fix documentation extraction of `FT_Error_String`. 2021-06-23 08:14:42 +02:00
ftfntfmt.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftgasp.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftglyph.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftgxval.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftgzip.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftimage.h [sdf] Use 8 bits for final SDF output instead of 16bits. 2021-06-08 08:29:34 +05:30
ftincrem.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftlcdfil.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftlist.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftlogging.h More various documentation improvements and fixes. 2021-06-08 18:23:16 +02:00
ftlzw.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftmac.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftmm.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftmodapi.h Small clean-ups for the last few commits. 2021-07-12 22:03:25 +02:00
ftmoderr.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftotval.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftoutln.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftparams.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftpfr.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftrender.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftsizes.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftsnames.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftstroke.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftsynth.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ftsystem.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
fttrigon.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
fttypes.h [sdf] Use 8 bits for final SDF output instead of 16bits. 2021-06-08 08:29:34 +05:30
ftwinfnt.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
t1tables.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
ttnameid.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
tttables.h Update all copyright notices. 2021-01-17 07:18:48 +01:00
tttags.h Update all copyright notices. 2021-01-17 07:18:48 +01:00