diff options
author | Eric Engestrom <[email protected]> | 2019-08-28 00:06:21 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-09-06 22:26:29 +0100 |
commit | 08890068c5c2c923ad85ced58c479ffbe4f84fc5 (patch) | |
tree | 8e8c7689a4e3fbce021630c2329cf3e5ee684049 /src/gallium/auxiliary/gallivm/lp_bld_init.c | |
parent | 6120c442ee644dba3dc36c41467835d60233b508 (diff) |
gallivm: replace major llvm version checks with LLVM_VERSION_MAJOR
Signed-off-by: Eric Engestrom <[email protected]>
Acked-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_init.c')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c index b0781eb97c2..0e81df357a8 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c @@ -38,9 +38,10 @@ #include "lp_bld_misc.h" #include "lp_bld_init.h" +#include <llvm/Config/llvm-config.h> #include <llvm-c/Analysis.h> #include <llvm-c/Transforms/Scalar.h> -#if HAVE_LLVM >= 0x0700 +#if LLVM_VERSION_MAJOR >= 7 #include <llvm-c/Transforms/Utils.h> #endif #include <llvm-c/BitWriter.h> |