aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-01-07 12:44:22 +0100
committerHampusM <hampus@hampusmat.com>2022-01-07 12:44:22 +0100
commit2876d7efdeac80085a04b8f1c509065bf323f70e (patch)
tree9d7319bb3b8dec6ab58d90486a0515d90160481d /src
parentbe8f26b069de778474eb634dcf3f53f5ec133002 (diff)
fix: add missing includes
Diffstat (limited to 'src')
-rw-r--r--src/grid.c1
-rw-r--r--src/maze.c1
-rw-r--r--src/utils.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/grid.c b/src/grid.c
index 7248087..372ea7e 100644
--- a/src/grid.c
+++ b/src/grid.c
@@ -1,6 +1,7 @@
#include "grid.h"
#include "utils.h"
#include <stdlib.h>
+#include <stdio.h>
Grid grid_create(unsigned int width, unsigned int height, char *fill)
{
diff --git a/src/maze.c b/src/maze.c
index 2097906..bae1ba4 100644
--- a/src/maze.c
+++ b/src/maze.c
@@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <stdint.h>
int is_pos_empty(Grid grid, Position pos)
{
diff --git a/src/utils.c b/src/utils.c
index 760589c..2657a00 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -2,6 +2,7 @@
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
+#include <stdio.h>
#include <limits.h>
void *malloc_s(unsigned long amount)