From 8093062e3b58af6124f75161be110a4eccef7b54 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 19 Mar 2020 15:36:13 +0000 Subject: [PATCH] Wrap all LLVM C includes --- src/main.cpp | 4 ++++ src/types.cpp | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index caad1c901..46364d8d6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -10,6 +10,10 @@ gb_global Timings global_timings = {0}; +#if defined(LLVM_BACKEND_SUPPORT) +#include "llvm-c/Types.h" +#endif + #include "parser.hpp" #include "checker.hpp" diff --git a/src/types.cpp b/src/types.cpp index 6d880cdec..4c7f07cc7 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -1,5 +1,3 @@ -#include "llvm-c/Types.h" - struct Scope; struct Ast;