]> granicus.if.org Git - clang/commitdiff
Builtins.def: Explicitly undef finitef, to appease mingw. It defines finitef as alias...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 15 Sep 2016 05:11:43 +0000 (05:11 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 15 Sep 2016 05:11:43 +0000 (05:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281582 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Builtins.def

index 6de2dec9a47b0bfa415974c32094007a36ec34b3..0bb74cb543642fe57d40d6159b69eff2c7d5350e 100644 (file)
@@ -944,6 +944,10 @@ LIBBUILTIN(fabs, "dd", "fnc", "math.h", ALL_LANGUAGES)
 LIBBUILTIN(fabsf, "ff", "fnc", "math.h", ALL_LANGUAGES)
 LIBBUILTIN(fabsl, "LdLd", "fnc", "math.h", ALL_LANGUAGES)
 
+// Some systems define finitef as alias of _finitef.
+#if defined (finitef)
+#undef finitef
+#endif
 LIBBUILTIN(finite, "id", "fnc", "math.h", GNU_LANG)
 LIBBUILTIN(finitef, "if", "fnc", "math.h", GNU_LANG)
 LIBBUILTIN(finitel, "iLd", "fnc", "math.h", GNU_LANG)