Fix the build on Windows

No __BYTE_ORDER there.
This commit is contained in:
Matthias Clasen 2022-12-24 05:30:11 -05:00
parent f9c865a899
commit 76c16095fa
1 changed files with 2 additions and 0 deletions

View File

@ -143,6 +143,7 @@ hb_cairo_paint_glyph_image (cairo_t *cr,
return; return;
unsigned char *data; unsigned char *data;
#ifdef __BYTE_ORDER
if (__BYTE_ORDER == __BIG_ENDIAN) if (__BYTE_ORDER == __BIG_ENDIAN)
{ {
data = (unsigned char *) hb_blob_get_data_writable (blob, NULL); data = (unsigned char *) hb_blob_get_data_writable (blob, NULL);
@ -162,6 +163,7 @@ hb_cairo_paint_glyph_image (cairo_t *cr,
} }
} }
else else
#endif
data = (unsigned char *) hb_blob_get_data (blob, NULL); data = (unsigned char *) hb_blob_get_data (blob, NULL);
surface = cairo_image_surface_create_for_data (data, surface = cairo_image_surface_create_for_data (data,