diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index 52e9f7bc770..67ae1fa1e93 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -44,9 +44,11 @@ #include +#if LLVM_VERSION_MAJOR < 7 // Workaround http://llvm.org/PR23628 #pragma push_macro("DEBUG") #undef DEBUG +#endif #include #include @@ -73,8 +75,10 @@ #include #endif +#if LLVM_VERSION_MAJOR < 7 // Workaround http://llvm.org/PR23628 #pragma pop_macro("DEBUG") +#endif #include "c11/threads.h" #include "os/os_thread.h"