From b9481b72bb8288909165a4452ac2a9478c5437af Mon Sep 17 00:00:00 2001 From: Ian C Date: Wed, 12 Sep 2018 14:01:42 +0000 Subject: Changes to compile on FreeBSD. --- Makefile | 2 +- snesgfx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2c4a9ae..04bc3b3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ snesgfx: snesgfx.c - c99 -g -o snesgfx snesgfx.c -lpng + c99 -I/usr/local/include -L/usr/local/lib -g -o snesgfx snesgfx.c -lpng clean: rm -f snesgfx core diff --git a/snesgfx.c b/snesgfx.c index 3c59ed8..d19e5bb 100644 --- a/snesgfx.c +++ b/snesgfx.c @@ -195,7 +195,7 @@ int main(int argc, char *argv[]) int colours = 4; char *source = NULL; char *dest = NULL; - char header[8] = {0}; + unsigned char header[8] = {0}; FILE *input; FILE *output; png_structp png; -- cgit v1.2.3