From 180825fe43ece9bf13c27929b7fdeec5a457e9c3 Mon Sep 17 00:00:00 2001 From: Thomas Munro Date: Mon, 29 Jul 2019 10:12:37 +1200 Subject: [PATCH] Avoid macro clash with LLVM 9. Early previews of LLVM 9 reveal that our Min() macro causes compiler errors in LLVM headers reached by the #include directives in llvmjit_inline.cpp. Let's just undefine it. Per buildfarm animal seawasp. Back-patch to 11. Reviewed-by: Fabien Coelho, Tom Lane Discussion: https://postgr.es/m/20190606173216.GA6306%40alvherre.pgsql --- src/backend/jit/llvm/llvmjit_inline.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/jit/llvm/llvmjit_inline.cpp b/src/backend/jit/llvm/llvmjit_inline.cpp index 8005d43a84..0513998b02 100644 --- a/src/backend/jit/llvm/llvmjit_inline.cpp +++ b/src/backend/jit/llvm/llvmjit_inline.cpp @@ -42,6 +42,9 @@ extern "C" #include #include +/* Avoid macro clash with LLVM's C++ headers */ +#undef Min + #include #include #include -- 2.40.0