ref: f75ed687deda27988f9a566c35efdc074ecf84ed
parent: 81945108b729399d2f2a5e37c3eb6d087be983fc
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Jul 23 21:55:21 EDT 2021
pack pal16_t (otherwise crashes on Plan 9)
--- a/src/ft2_palette.h
+++ b/src/ft2_palette.h
@@ -44,10 +44,21 @@
PAL_NUM
};
+#ifdef _MSC_VER
+#pragma pack(push)
+#pragma pack(1)
+#endif
typedef struct pal16_t
{
uint8_t r, g, b;
-} pal16;
+}
+#ifdef __GNUC__
+__attribute__ ((packed))
+#endif
+pal16;
+#ifdef _MSC_VER
+#pragma pack(pop)
+#endif
void setCustomPalColor(uint32_t color);