shithub: rgbds

Download patch

ref: 0d7914bff72af17f5bb638896161649e85290288
parent: d2285953d715d3feec9595abcc82687d4173a7e0
author: ISSOtm <[email protected]>
date: Sun Sep 6 13:16:49 EDT 2020

Fix `asm/charmap.h` not including required header

--- a/include/asm/charmap.h
+++ b/include/asm/charmap.h
@@ -11,6 +11,8 @@
 
 #include <stdint.h>
 
+#include "asm/symbol.h"
+
 #define MAXCHARMAPS	512
 #define CHARMAPLENGTH	16
 #define MAXCHARNODES	(MAXCHARMAPS * CHARMAPLENGTH + 1)
--- a/src/asm/main.c
+++ b/src/asm/main.c
@@ -17,12 +17,12 @@
 #include <string.h>
 #include <time.h>
 
-#include "asm/symbol.h"
+#include "asm/charmap.h"
 #include "asm/fstack.h"
 #include "asm/lexer.h"
-#include "asm/output.h"
 #include "asm/main.h"
-#include "asm/charmap.h"
+#include "asm/output.h"
+#include "asm/symbol.h"
 #include "asm/warning.h"
 
 #include "extern/err.h"