summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2018-09-12 14:01:42 +0000
committerIan C <ianc@noddybox.co.uk>2018-09-12 14:01:42 +0000
commitb9481b72bb8288909165a4452ac2a9478c5437af (patch)
tree762943152262bafca12da24bbbd090ff8bbb15fd
parent1deb55e53a1ed4c5745661f7923d497622296f48 (diff)
Changes to compile on FreeBSD.
-rw-r--r--Makefile2
-rw-r--r--snesgfx.c2
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;