aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@xglobe.in>2020-04-03 19:40:20 +0200
committerOmar Polo <op@xglobe.in>2020-04-03 19:40:20 +0200
commit9a0497ff1c0c15dcb7b27fa7964b3b1e4dacc6b1 (patch)
tree62afe4dd72af50d6ac5005cbe62c19c8279e0ddc
parent7f40f3f51cc79bec922438a9fdfd147dac32d08d (diff)
downloadtext-adventure-9a0497ff1c0c15dcb7b27fa7964b3b1e4dacc6b1.tar.gz
text-adventure-9a0497ff1c0c15dcb7b27fa7964b3b1e4dacc6b1.tar.bz2
fix header order for readline
readline needs stdio.h included, but before itself. Change needed after the recent clang-format
-rw-r--r--io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/io.c b/io.c
index 462d559..af13159 100644
--- a/io.c
+++ b/io.c
@@ -1,9 +1,10 @@
#include "adventure.h"
/* this in only needed for readline */
+#include <stdio.h>
+
#include <readline/history.h>
#include <readline/readline.h>
-#include <stdio.h>
char *line = NULL;