diff options
author | maxim-yurchuk <maxim-yurchuk@yandex-team.com> | 2024-10-09 12:29:46 +0300 |
---|---|---|
committer | maxim-yurchuk <maxim-yurchuk@yandex-team.com> | 2024-10-09 13:14:22 +0300 |
commit | 9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch) | |
tree | a8fb3181d5947c0d78cf402aa56e686130179049 /contrib/libs/cxxsupp/libcxxmsvc/.yandex_meta/patches/17-limits-msvc-win32.patch | |
parent | a44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff) | |
download | ydb-9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80.tar.gz |
publishFullContrib: true for ydb
<HIDDEN_URL>
commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/libs/cxxsupp/libcxxmsvc/.yandex_meta/patches/17-limits-msvc-win32.patch')
-rw-r--r-- | contrib/libs/cxxsupp/libcxxmsvc/.yandex_meta/patches/17-limits-msvc-win32.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/libs/cxxsupp/libcxxmsvc/.yandex_meta/patches/17-limits-msvc-win32.patch b/contrib/libs/cxxsupp/libcxxmsvc/.yandex_meta/patches/17-limits-msvc-win32.patch new file mode 100644 index 0000000000..4a4424fbff --- /dev/null +++ b/contrib/libs/cxxsupp/libcxxmsvc/.yandex_meta/patches/17-limits-msvc-win32.patch @@ -0,0 +1,24 @@ +diff --git a/include/__support/win32/limits_msvc_win32.h b/include/__support/win32/limits_msvc_win32.h +index 87e4e7d..9f693d9 100644 +--- a/include/__support/win32/limits_msvc_win32.h ++++ b/include/__support/win32/limits_msvc_win32.h +@@ -20,7 +20,6 @@ + #include <float.h> // limit constants + #include <limits.h> // CHAR_BIT + #include <math.h> // HUGE_VAL +-#include <ymath.h> // internal MSVC header providing the needed functionality + + #define __CHAR_BIT__ CHAR_BIT + +@@ -64,8 +63,8 @@ + #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L + + // __builtin replacements/workarounds +-#define __builtin_huge_vall() _LInf._Long_double +-#define __builtin_nanl(__dummmy) _LNan._Long_double +-#define __builtin_nansl(__dummy) _LSnan._Long_double ++#define __builtin_huge_vall() ((long double)__builtin_huge_val()) ++#define __builtin_nanl(__dummy) ((long double)__builtin_nan(__dummy)) ++#define __builtin_nansl(__dummy) ((long double)__builtin_nans(__dummy)) + + #endif // _LIBCPP_SUPPORT_WIN32_LIMITS_MSVC_WIN32_H |