aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--asm/lexer.cpp3
-rw-r--r--asm/main.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/asm/lexer.cpp b/asm/lexer.cpp
index 4e24ab7..82cf260 100644
--- a/asm/lexer.cpp
+++ b/asm/lexer.cpp
@@ -10,7 +10,10 @@
* Description: Lexer for assembly language
*/
+extern "C"
+{
#include <lib/inst.h>
+}
#include <algorithm>
#include <tuple>
diff --git a/asm/main.cpp b/asm/main.cpp
index 61ec667..8ae8a39 100644
--- a/asm/main.cpp
+++ b/asm/main.cpp
@@ -18,7 +18,10 @@
#include <tuple>
#include <vector>
+extern "C"
+{
#include <lib/inst.h>
+}
#include "./base.hpp"
#include "./lexer.hpp"