From: Rafael Espindola Date: Wed, 12 Oct 2011 23:56:54 +0000 (+0000) Subject: Fix MSVC build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dac6cec94c23ba7c9021590a88878768abde4f2e;p=clang Fix MSVC build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141837 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/Builtins.def b/include/clang/Basic/Builtins.def index d3a5eaf5f9..4f89f81341 100644 --- a/include/clang/Basic/Builtins.def +++ b/include/clang/Basic/Builtins.def @@ -674,6 +674,9 @@ LIBBUILTIN(bzero, "vv*z", "f", "strings.h", ALL_LANGUAGES) LIBBUILTIN(_exit, "vi", "fr", "unistd.h", ALL_LANGUAGES) // POSIX setjmp.h +// In some systems setjmp is a macro that expands to _setjmp. We undefine +// it here to avoid having two identical LIBBUILTIN entries. +#undef setjmp LIBBUILTIN(_setjmp, "iJ", "fj", "setjmp.h", ALL_LANGUAGES) LIBBUILTIN(__sigsetjmp, "iJ", "fj", "setjmp.h", ALL_LANGUAGES) LIBBUILTIN(setjmp, "iJ", "fj", "setjmp.h", ALL_LANGUAGES)