diff options
Diffstat (limited to 'renderscript/clang-include/float.h')
-rw-r--r-- | renderscript/clang-include/float.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/renderscript/clang-include/float.h b/renderscript/clang-include/float.h index b7cb73a..2cb13d3 100644 --- a/renderscript/clang-include/float.h +++ b/renderscript/clang-include/float.h @@ -28,7 +28,7 @@ * additional definitions provided for Windows. * For more details see http://msdn.microsoft.com/en-us/library/y0ybw9fy.aspx */ -#if defined(__MINGW32__) && \ +#if (defined(__MINGW32__) || defined(_MSC_VER)) && \ defined(__has_include_next) && __has_include_next(<float.h>) # include_next <float.h> @@ -64,6 +64,11 @@ # 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 */ @@ -110,4 +115,10 @@ #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 */ |