aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralperevyshin <alperevyshin@yandex-team.com>2023-05-10 16:00:21 +0300
committeralperevyshin <alperevyshin@yandex-team.com>2023-05-10 16:00:21 +0300
commit2e4a2718047596b0979051f3bc9e76207f884e4b (patch)
treed3f9ea07262a460ab99e12aea583350fc5497573
parent139c32eecb26c11cdd0653035856fab57f3f89aa (diff)
downloadydb-2e4a2718047596b0979051f3bc9e76207f884e4b.tar.gz
Add resolving macro-includes for some macros. Pt. 1
Add resolving macro-includes for some macros Detect all macro-includes in Arcadia
-rw-r--r--contrib/restricted/boost/config/include/boost/config/platform/cloudabi.hpp18
-rw-r--r--contrib/restricted/boost/config/include/boost/config/platform/haiku.hpp31
-rw-r--r--contrib/restricted/boost/config/include/boost/config/platform/wasm.hpp23
3 files changed, 72 insertions, 0 deletions
diff --git a/contrib/restricted/boost/config/include/boost/config/platform/cloudabi.hpp b/contrib/restricted/boost/config/include/boost/config/platform/cloudabi.hpp
new file mode 100644
index 0000000000..bed7b6318d
--- /dev/null
+++ b/contrib/restricted/boost/config/include/boost/config/platform/cloudabi.hpp
@@ -0,0 +1,18 @@
+// Copyright Nuxi, https://nuxi.nl/ 2015.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#define BOOST_PLATFORM "CloudABI"
+
+#define BOOST_HAS_DIRENT_H
+#define BOOST_HAS_STDINT_H
+#define BOOST_HAS_UNISTD_H
+
+#define BOOST_HAS_CLOCK_GETTIME
+#define BOOST_HAS_EXPM1
+#define BOOST_HAS_GETTIMEOFDAY
+#define BOOST_HAS_LOG1P
+#define BOOST_HAS_NANOSLEEP
+#define BOOST_HAS_PTHREADS
+#define BOOST_HAS_SCHED_YIELD
diff --git a/contrib/restricted/boost/config/include/boost/config/platform/haiku.hpp b/contrib/restricted/boost/config/include/boost/config/platform/haiku.hpp
new file mode 100644
index 0000000000..04244c5677
--- /dev/null
+++ b/contrib/restricted/boost/config/include/boost/config/platform/haiku.hpp
@@ -0,0 +1,31 @@
+// (C) Copyright Jessica Hamilton 2014.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org for most recent version.
+
+// Haiku specific config options:
+
+#define BOOST_PLATFORM "Haiku"
+
+#define BOOST_HAS_UNISTD_H
+#define BOOST_HAS_STDINT_H
+
+#ifndef BOOST_DISABLE_THREADS
+# define BOOST_HAS_THREADS
+#endif
+
+#define BOOST_NO_CXX11_HDR_TYPE_TRAITS
+#define BOOST_NO_CXX11_ATOMIC_SMART_PTR
+#define BOOST_NO_CXX11_STATIC_ASSERT
+#define BOOST_NO_CXX11_VARIADIC_MACROS
+
+//
+// thread API's not auto detected:
+//
+#define BOOST_HAS_SCHED_YIELD
+#define BOOST_HAS_GETTIMEOFDAY
+
+// boilerplate code:
+#include <boost/config/detail/posix_features.hpp>
diff --git a/contrib/restricted/boost/config/include/boost/config/platform/wasm.hpp b/contrib/restricted/boost/config/include/boost/config/platform/wasm.hpp
new file mode 100644
index 0000000000..682b84859a
--- /dev/null
+++ b/contrib/restricted/boost/config/include/boost/config/platform/wasm.hpp
@@ -0,0 +1,23 @@
+// (C) Copyright John Maddock 2020.
+// Use, modification and distribution are subject to the
+// Boost Software License, Version 1.0. (See accompanying file
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+// See http://www.boost.org for most recent version.
+
+// WASM specific config options:
+
+#define BOOST_PLATFORM "Wasm"
+
+#ifdef __has_include
+#if __has_include(<unistd.h>)
+# define BOOST_HAS_UNISTD_H
+#endif
+#endif
+
+// boilerplate code:
+#include <boost/config/detail/posix_features.hpp>
+//
+// fenv lacks the C++11 macros:
+//
+#define BOOST_NO_FENV_H