From 76c16095fa9a15d719ce78e3adc6d890439e62e1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 24 Dec 2022 05:30:11 -0500 Subject: [PATCH] Fix the build on Windows No __BYTE_ORDER there. --- util/hb-cairo-utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/hb-cairo-utils.c b/util/hb-cairo-utils.c index 316f5480b..3613e09b6 100644 --- a/util/hb-cairo-utils.c +++ b/util/hb-cairo-utils.c @@ -143,6 +143,7 @@ hb_cairo_paint_glyph_image (cairo_t *cr, return; unsigned char *data; +#ifdef __BYTE_ORDER if (__BYTE_ORDER == __BIG_ENDIAN) { data = (unsigned char *) hb_blob_get_data_writable (blob, NULL); @@ -162,6 +163,7 @@ hb_cairo_paint_glyph_image (cairo_t *cr, } } else +#endif data = (unsigned char *) hb_blob_get_data (blob, NULL); surface = cairo_image_surface_create_for_data (data,