[cfe-commits] r141837 - /cfe/trunk/include/clang/Basic/Builtins.def
Rafael Espindola
rafael.espindola at gmail.com
Wed Oct 12 16:56:54 PDT 2011
Author: rafael
Date: Wed Oct 12 18:56:54 2011
New Revision: 141837
URL: http://llvm.org/viewvc/llvm-project?rev=141837&view=rev
Log:
Fix MSVC build.
Modified:
cfe/trunk/include/clang/Basic/Builtins.def
Modified: cfe/trunk/include/clang/Basic/Builtins.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Builtins.def?rev=141837&r1=141836&r2=141837&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Builtins.def (original)
+++ cfe/trunk/include/clang/Basic/Builtins.def Wed Oct 12 18:56:54 2011
@@ -674,6 +674,9 @@
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)
More information about the cfe-commits
mailing list