Re: small c++ breakage in current freetype git HEAD

Alexei Podtelezhnikov <[email protected]> Mon, 6 May 2024 23:42:47 -0400
Newsgroups gmane.comp.fonts.freetype.devel
Message-ID <CAJU=AjWNJnoyBXG8f6LjL7fAmRY6q8x2kXaN_mZUceH=1zCDvw@mail.gmail.com>
On Mon, May 6, 2024 at 2:12 PM Hin-Tak Leung
<[email protected]> wrote:
> I have upgraded to fc40 last week, and there has been some breakage of skia-python against current skia lately, so I thought I'd update and rebuild the skia-enabled ft2-demos, now ported over to github CI against freetype git head. (next e-mail). Since skia is c++, requires setting CC=c++. Found a small breakage in current freetype git head after 2.13.2 . Diff attached - should be obvious.
>
> The actual error is that "enum" is a proper type in c++, and not equivalent to "int" (as in c), so must be casted as such.

Alternatively, T1_FIELD_TYPE_NONE could be used. For some reason
T1_FIELD_LOCATION_NONE = 0 is not defined.

Alexei