partly taken from https://github.com/smlsharp/smlsharp/commit/351e863ae30b66af10158557f6869e2531944304 -- diff --git a/src/llvm/main/smlsharp_gc.cpp b/src/llvm/main/smlsharp_gc.cpp index 17bbfd3..0081e49 100644 --- a/src/llvm/main/smlsharp_gc.cpp +++ b/src/llvm/main/smlsharp_gc.cpp @@ -8,7 +8,11 @@ #include #include +#if LLVM_VERSION_MAJOR >= 13 +#include +#else #include +#endif #include #include #include