]> granicus.if.org Git - clang/commitdiff
Add C11 FLT_TRUE_MIN and friends. <rdar://problem/10812837>.
authorEli Friedman <eli.friedman@gmail.com>
Tue, 7 Feb 2012 01:02:19 +0000 (01:02 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 7 Feb 2012 01:02:19 +0000 (01:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149949 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/float.h

index b7cb73ae59fedd555ec9219db45ba61dde48cd97..65b517d556f827e25cbd6e2136100747b63da59c 100644 (file)
 #  undef FLT_MIN
 #  undef DBL_MIN
 #  undef LDBL_MIN
+#  if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__)
+#    undef FLT_TRUE_MIN
+#    undef DBL_TRUE_MIN
+#    undef LDBL_TRUE_MIN
+#  endif
 #endif
 
 /* Characteristics of floating point types, C99 5.2.4.2.2 */
 #define DBL_MIN __DBL_MIN__
 #define LDBL_MIN __LDBL_MIN__
 
+#if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__)
+#  define FLT_TRUE_MIN __FLT_DENORM_MIN__
+#  define DBL_TRUE_MIN __DBL_DENORM_MIN__
+#  define LDBL_TRUE_MIN __LDBL_DENORM_MIN__
+#endif
+
 #endif /* __FLOAT_H */