From a70dcf2e3ff5fd6e6fb88f395722eb1199a74693 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 15 Apr 2024 16:26:44 +0630 Subject: ~extern "C"~ when including lib/inst.h --- asm/lexer.cpp | 3 +++ asm/main.cpp | 3 +++ 2 files changed, 6 insertions(+) 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 +} #include #include 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 #include +extern "C" +{ #include +} #include "./base.hpp" #include "./lexer.hpp" -- cgit v1.2.3-13-gbd6f