summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers/float.h
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2018-08-06 14:29:47 +0000
committerLouis Dionne <ldionne@apple.com>2018-08-06 14:29:47 +0000
commit58529c3f5739c7bdb74da8c6ce3e2d16672e9315 (patch)
tree2f3f871ccb6bc3e5aef288a57110b85cb033ffa7 /clang/lib/Headers/float.h
parentc238ca24b09885ad709dcdb10a0d75e7197cb8d1 (diff)
downloadbcm5719-llvm-58529c3f5739c7bdb74da8c6ce3e2d16672e9315.tar.gz
bcm5719-llvm-58529c3f5739c7bdb74da8c6ce3e2d16672e9315.zip
[clang] Fix broken include_next in float.h
Summary: The code defines __FLOAT_H and then includes the next <float.h>, 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 llvm-svn: 339016
Diffstat (limited to 'clang/lib/Headers/float.h')
-rw-r--r--clang/lib/Headers/float.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Headers/float.h b/clang/lib/Headers/float.h
index 44d4d05494f..c04cbbf47eb 100644
--- a/clang/lib/Headers/float.h
+++ b/clang/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 */
OpenPOWER on IntegriCloud