ref: 4eb6cb8818057a022f97176b53738ee3098c8eb6
parent: 4f35711844eb5931833467fe15568aed7b38a381
author: Alexander Borsuk <[email protected]>
date: Sat Dec 25 04:23:58 EST 2021
Fix warnings for CMake Unity builds. * src/cache/ftcbasic.c (FT_COMPONENT): Undefine macro before redefinition. * src/smooth/ftgrays.c (TRUNC, FRACT): Ditto.
--- a/src/cache/ftcbasic.c
+++ b/src/cache/ftcbasic.c
@@ -26,6 +26,7 @@
#include "ftccback.h"
#include "ftcerror.h"
+#undef FT_COMPONENT
#define FT_COMPONENT cache
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -333,7 +333,9 @@
#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