shithub: pokecrystal

Download patch

ref: 80f7477c3343517a96c6effcaf96f40c38f8f4d7
parent: 9b1550c5e0abf20da5c7043c3ac49260fac79147
author: yenatch <yenatch@gmail.com>
date: Sat Jun 24 12:42:44 EDT 2017

Fix tools/gfx

--- a/tools/Makefile
+++ b/tools/Makefile
@@ -1,5 +1,7 @@
 .PHONY: all
 
+CFLAGS := -std=c99
+
 all: \
 	lzcomp \
 	png_dimensions \
@@ -11,4 +13,4 @@
 	@:
 
 %: %.c
-	$(CC) -o $@ $<
+	$(CC) $(CFLAGS) -o $@ $<
--- a/tools/gfx.c
+++ b/tools/gfx.c
@@ -3,6 +3,7 @@
 #include <stdbool.h>
 #include <getopt.h>
 #include <string.h>
+#include <stdint.h>
 
 #include "common.h"