summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers/float.h
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-02-22 20:48:54 +0000
committerLouis Dionne <ldionne@apple.com>2019-02-22 20:48:54 +0000
commitc2d95792d64bcaa8235c0f31747e56ce5d203e0f (patch)
tree67ab3a6edb7a62a5cbcf2eaf4019bb5a8786fed4 /clang/lib/Headers/float.h
parente69f94e02224de809d52b9a6fe58622b29e328c0 (diff)
downloadbcm5719-llvm-c2d95792d64bcaa8235c0f31747e56ce5d203e0f.tar.gz
bcm5719-llvm-c2d95792d64bcaa8235c0f31747e56ce5d203e0f.zip
[clang] Only provide C11 features in <float.h> starting with C++17
Summary: In r353970, I enabled those features in C++11 and above. To be strictly conforming, those features should only be enabled in C++17 and above. Reviewers: jfb, eli.friedman Subscribers: jkorous, dexonsmith, libcxx-commits Differential Revision: https://reviews.llvm.org/D58289 llvm-svn: 354691
Diffstat (limited to 'clang/lib/Headers/float.h')
-rw-r--r--clang/lib/Headers/float.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Headers/float.h b/clang/lib/Headers/float.h
index 92bddee2f6e..46a8dae06ab 100644
--- a/clang/lib/Headers/float.h
+++ b/clang/lib/Headers/float.h
@@ -78,7 +78,7 @@
# undef FLT_MIN
# undef DBL_MIN
# undef LDBL_MIN
-# if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__) || __cplusplus >= 201103L
+# if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__) || __cplusplus >= 201703L
# undef FLT_TRUE_MIN
# undef DBL_TRUE_MIN
# undef LDBL_TRUE_MIN
@@ -137,7 +137,7 @@
#define DBL_MIN __DBL_MIN__
#define LDBL_MIN __LDBL_MIN__
-#if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__) || __cplusplus >= 201103L
+#if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__) || __cplusplus >= 201703L
# define FLT_TRUE_MIN __FLT_DENORM_MIN__
# define DBL_TRUE_MIN __DBL_DENORM_MIN__
# define LDBL_TRUE_MIN __LDBL_DENORM_MIN__
OpenPOWER on IntegriCloud