#endif
#include <stdlib.h>
-#include <stdint.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
int lbximg_loadpalette(FILE *f, struct lbx_colour palette[static 256])
{
- uint8_t entry[4];
+ unsigned char entry[4];
int i;
for (i = 0; i < 256; i++) {
int
lbximg_getpalette(struct lbx_image *img, struct lbx_colour palette[static 256])
{
+ unsigned char entry[4];
unsigned int i;
size_t rc;
- uint8_t entry[4];
-
/* Do nothing if the image doesn't have embedded palette data. */
if (!(img->flags & FLAG_PALETTE))
return 0;