Fix warnings for CMake Unity builds.

* src/cache/ftcbasic.c (FT_COMPONENT): Undefine macro before redefinition.
* src/smooth/ftgrays.c (TRUNC, FRACT): Ditto.
This commit is contained in:
Alexander Borsuk 2021-12-25 09:23:58 +01:00 committed by Werner Lemberg
parent 4f35711844
commit 4eb6cb8818
2 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#include "ftccback.h"
#include "ftcerror.h"
#undef FT_COMPONENT
#define FT_COMPONENT cache

View File

@ -333,7 +333,9 @@ typedef ptrdiff_t FT_PtrDist;
#define PIXEL_BITS 8
#define ONE_PIXEL ( 1 << PIXEL_BITS )
#undef TRUNC
#define TRUNC( x ) (TCoord)( (x) >> PIXEL_BITS )
#undef FRACT
#define FRACT( x ) (TCoord)( (x) & ( ONE_PIXEL - 1 ) )
#if PIXEL_BITS >= 6