From cc732ec6d170057b1c6b1ead7fc131348bcd7e8f Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Thu, 21 Sep 2023 02:28:32 +0000 Subject: [PATCH] * include/freetype/internal/ftcalc.h (FT_MSB): Define for Solaris 11. --- include/freetype/internal/ftcalc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/freetype/internal/ftcalc.h b/include/freetype/internal/ftcalc.h index b987ccb20..11b76fe5e 100644 --- a/include/freetype/internal/ftcalc.h +++ b/include/freetype/internal/ftcalc.h @@ -455,6 +455,12 @@ FT_BEGIN_HEADER #define FT_MSB( x ) FT_MSB_i386( x ) +#elif defined( __SunOS_5_11 ) + +#include + +#define FT_MSB( x ) ( fls( x ) - 1 ) + #elif defined( __DECC ) || defined( __DECCXX ) #include