aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-23 16:37:02 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-23 16:37:02 +0300
commit5082c890e9fced79ababea01152b594907e4a012 (patch)
tree40a8e414d1e8b45ce2f6f43bee272fbf6cf28710 /contrib/libs
parent627718e309e5ac397388c83fd4d287e48b51c78d (diff)
downloadydb-5082c890e9fced79ababea01152b594907e4a012.tar.gz
intermediate changes
ref:2fd7725f9a380208f93125e4819eee9282388396
Diffstat (limited to 'contrib/libs')
-rw-r--r--contrib/libs/cctz/tzdata/CMakeLists.txt2
-rw-r--r--contrib/libs/cxxsupp/libcxx/include/fenv.h120
2 files changed, 121 insertions, 1 deletions
diff --git a/contrib/libs/cctz/tzdata/CMakeLists.txt b/contrib/libs/cctz/tzdata/CMakeLists.txt
index 6e333c418e..237c4f05e6 100644
--- a/contrib/libs/cctz/tzdata/CMakeLists.txt
+++ b/contrib/libs/cctz/tzdata/CMakeLists.txt
@@ -7,7 +7,7 @@ target_link_libraries(libs-cctz-tzdata INTERFACE
)
add_global_library_for(libs-cctz-tzdata.global libs-cctz-tzdata)
-target_link_libraries(libs-cctz-tzdata.global INTERFACE
+target_link_libraries(libs-cctz-tzdata.global PUBLIC
contrib-libs-cxxsupp
yutil
contrib-libs-cctz
diff --git a/contrib/libs/cxxsupp/libcxx/include/fenv.h b/contrib/libs/cxxsupp/libcxx/include/fenv.h
new file mode 100644
index 0000000000..35dbd94635
--- /dev/null
+++ b/contrib/libs/cxxsupp/libcxx/include/fenv.h
@@ -0,0 +1,120 @@
+// -*- C++ -*-
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP_FENV_H
+#define _LIBCPP_FENV_H
+
+
+/*
+ fenv.h synopsis
+
+This entire header is C99 / C++0X
+
+Macros:
+
+ FE_DIVBYZERO
+ FE_INEXACT
+ FE_INVALID
+ FE_OVERFLOW
+ FE_UNDERFLOW
+ FE_ALL_EXCEPT
+ FE_DOWNWARD
+ FE_TONEAREST
+ FE_TOWARDZERO
+ FE_UPWARD
+ FE_DFL_ENV
+
+Types:
+
+ fenv_t
+ fexcept_t
+
+int feclearexcept(int excepts);
+int fegetexceptflag(fexcept_t* flagp, int excepts);
+int feraiseexcept(int excepts);
+int fesetexceptflag(const fexcept_t* flagp, int excepts);
+int fetestexcept(int excepts);
+int fegetround();
+int fesetround(int round);
+int fegetenv(fenv_t* envp);
+int feholdexcept(fenv_t* envp);
+int fesetenv(const fenv_t* envp);
+int feupdateenv(const fenv_t* envp);
+
+
+*/
+
+#include <__config>
+
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#pragma GCC system_header
+#endif
+
+#ifdef _LIBCPP_COMPILER_MSVC
+#include _LIBCPP_UCRT_INCLUDE(fenv.h)
+#else
+#include_next <fenv.h>
+#endif
+
+#ifdef __cplusplus
+
+extern "C++" {
+
+#ifdef feclearexcept
+#undef feclearexcept
+#endif
+
+#ifdef fegetexceptflag
+#undef fegetexceptflag
+#endif
+
+
+#ifdef feraiseexcept
+#undef feraiseexcept
+#endif
+
+#ifdef fesetexceptflag
+#undef fesetexceptflag
+#endif
+
+
+#ifdef fetestexcept
+#undef fetestexcept
+#endif
+
+#ifdef fegetround
+#undef fegetround
+#endif
+
+#ifdef fesetround
+#undef fesetround
+#endif
+
+#ifdef fegetenv
+#undef fegetenv
+#endif
+
+#ifdef feholdexcept
+#undef feholdexcept
+#endif
+
+
+#ifdef fesetenv
+#undef fesetenv
+#endif
+
+#ifdef feupdateenv
+#undef feupdateenv
+#endif
+
+} // extern "C++"
+
+#endif // defined(__cplusplus)
+
+#endif // _LIBCPP_FENV_H