Commit 4eb6cb88 authored by Alexander Borsuk's avatar Alexander Borsuk Committed by Werner Lemberg
Browse files

Fix warnings for CMake Unity builds.

* src/cache/ftcbasic.c (FT_COMPONENT): Undefine macro before redefinition.
* src/smooth/ftgrays.c (TRUNC, FRACT): Ditto.
parent 4f357118
Pipeline #472746 failed with stage
in 10 minutes and 23 seconds
......@@ -26,6 +26,7 @@
#include "ftccback.h"
#include "ftcerror.h"
#undef FT_COMPONENT
#define FT_COMPONENT cache
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment