diff --git a/deps/boost/gil/extension/toolbox/hsl.hpp b/deps/boost/gil/extension/toolbox/hsl.hpp index b1b9c1bf5..6ad73a1fc 100644 --- a/deps/boost/gil/extension/toolbox/hsl.hpp +++ b/deps/boost/gil/extension/toolbox/hsl.hpp @@ -43,8 +43,12 @@ typedef mpl::vector3< hsl_color_space::hue_t /// \ingroup LayoutModel typedef layout hsl_layout_t; - +#if BOOST_VERSION >= 106800 +using bits32f = boost::gil::float32_t; +GIL_DEFINE_ALL_TYPEDEFS( 32f, float32_t, hsl ); +#else GIL_DEFINE_ALL_TYPEDEFS( 32f, hsl ); +#endif /// \ingroup ColorConvert /// \brief RGB to HSL diff --git a/deps/boost/gil/extension/toolbox/hsv.hpp b/deps/boost/gil/extension/toolbox/hsv.hpp index dc6e14e24..e0fbc688d 100644 --- a/deps/boost/gil/extension/toolbox/hsv.hpp +++ b/deps/boost/gil/extension/toolbox/hsv.hpp @@ -44,7 +44,13 @@ typedef mpl::vector3< hsv_color_space::hue_t typedef layout hsv_layout_t; -GIL_DEFINE_ALL_TYPEDEFS( 32f, hsv ) +#if BOOST_VERSION >= 106800 +using bits32 = uint32_t; +using bits32f = float32_t; +GIL_DEFINE_ALL_TYPEDEFS( 32f, float32_t, hsv ) +#else +GIL_DEFINE_ALL_TYPEDEFS( 32f, hsv ); +#endif /// \ingroup ColorConvert /// \brief RGB to HSV diff --git a/include/mapnik/image_filter.hpp b/include/mapnik/image_filter.hpp index 87250e3f8..0a626cd09 100644 --- a/include/mapnik/image_filter.hpp +++ b/include/mapnik/image_filter.hpp @@ -47,6 +47,14 @@ // stl #include +#if BOOST_VERSION >= 106800 +namespace boost { +namespace gil { + using bits32f = boost::gil::float32_t; +} +} +#endif + // 8-bit YUV //Y = ( ( 66 * R + 129 * G + 25 * B + 128) >> 8) + 16 //U = ( ( -38 * R - 74 * G + 112 * B + 128) >> 8) + 128