diff --git a/tools/makefont.c b/tools/makefont.c index 16ca625..2ecb9ab 100644 --- a/tools/makefont.c +++ b/tools/makefont.c @@ -436,13 +436,13 @@ static int printf_unicode(struct glyph *g) static int printf_u32(char const *fmt, uint32_t i) { - uint32_t ni = hton32(i); + uint32_t ni = htonl(i); return printf_hex(fmt, (uint8_t *)&ni, 4); } static int printf_u16(char const *fmt, uint16_t i) { - uint16_t ni = hton16(i); + uint16_t ni = htons(i); return printf_hex(fmt, (uint8_t *)&ni, 2); }