Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit180825f

Browse files
committed
Avoid macro clash with LLVM 9.
Early previews of LLVM 9 reveal that our Min() macro causes compilererrors in LLVM headers reached by the #include directives inllvmjit_inline.cpp. Let's just undefine it. Per buildfarm animalseawasp. Back-patch to 11.Reviewed-by: Fabien Coelho, Tom LaneDiscussion:https://postgr.es/m/20190606173216.GA6306%40alvherre.pgsql
1 parente396d1e commit180825f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/backend/jit/llvm/llvmjit_inline.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ extern "C"
4242
#include<llvm-c/Core.h>
4343
#include<llvm-c/BitReader.h>
4444

45+
/* Avoid macro clash with LLVM's C++ headers*/
46+
#undef Min
47+
4548
#include<llvm/ADT/SetVector.h>
4649
#include<llvm/ADT/StringSet.h>
4750
#include<llvm/ADT/StringMap.h>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp