diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-15 16:26:44 +0630 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-15 16:26:44 +0630 |
commit | a70dcf2e3ff5fd6e6fb88f395722eb1199a74693 (patch) | |
tree | b92aa6bb316b9302519860a49df1bbf5c929a0ea | |
parent | 5319fd815da58af6168c619209ff7a3c39eb2896 (diff) | |
download | ovm-a70dcf2e3ff5fd6e6fb88f395722eb1199a74693.tar.gz ovm-a70dcf2e3ff5fd6e6fb88f395722eb1199a74693.tar.bz2 ovm-a70dcf2e3ff5fd6e6fb88f395722eb1199a74693.zip |
~extern "C"~ when including lib/inst.h
-rw-r--r-- | asm/lexer.cpp | 3 | ||||
-rw-r--r-- | asm/main.cpp | 3 |
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" |