From: Louis Dionne Date: Mon, 6 Aug 2018 14:29:47 +0000 (+0000) Subject: [clang] Fix broken include_next in float.h X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ce17ee315fc984449410005febd8b607180456b;p=clang [clang] Fix broken include_next in float.h Summary: The code defines __FLOAT_H and then includes the next , which is guarded on __FLOAT_H so it gets skipped entirely. This commit uses the header guard __CLANG_FLOAT_H, like other headers (such as limits.h) do. Reviewers: jfb Subscribers: dexonsmith, cfe-commits Differential Revision: https://reviews.llvm.org/D50276 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339016 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/float.h b/lib/Headers/float.h index 44d4d05494..c04cbbf47e 100644 --- a/lib/Headers/float.h +++ b/lib/Headers/float.h @@ -21,8 +21,8 @@ *===-----------------------------------------------------------------------=== */ -#ifndef __FLOAT_H -#define __FLOAT_H +#ifndef __CLANG_FLOAT_H +#define __CLANG_FLOAT_H /* If we're on MinGW, fall back to the system's float.h, which might have * additional definitions provided for Windows. @@ -157,4 +157,4 @@ # define FLT16_TRUE_MIN __FLT16_TRUE_MIN__ #endif /* __STDC_WANT_IEC_60559_TYPES_EXT__ */ -#endif /* __FLOAT_H */ +#endif /* __CLANG_FLOAT_H */