Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libcxx
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2021-08-24 17:37:07 +0300
committerLouis Dionne <ldionne.2@gmail.com>2022-03-11 17:08:30 +0300
commita805a15b287f9afa63f127568619c300f756fd36 (patch)
tree4b3188c7b3604851cd05a2e950b13607e1d881ee /libcxx
parent21f73d5826fb5024a27eaacafadfa316f58949c5 (diff)
[libc++] Remove workaround for missing declarations on Windows store apps
We don't need preprocessor logic to exclude those declarations when compiling for the Windows App Store, because that is handled by using_if_exists now. Differential Revision: https://reviews.llvm.org/D108632
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/include/__config10
-rw-r--r--libcxx/include/cstdlib2
2 files changed, 0 insertions, 12 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config
index 4d1e7063acf5..829478d8d7ff 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -294,16 +294,6 @@
# define _LIBCPP_HAS_BITSCAN64
# endif
# define _LIBCPP_HAS_OPEN_WITH_WCHAR
-
-// Some CRT APIs are unavailable to store apps
-# if defined(WINAPI_FAMILY)
-# include <winapifamily.h>
-# if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && \
- (!defined(WINAPI_PARTITION_SYSTEM) || \
- !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_SYSTEM))
-# define _LIBCPP_WINDOWS_STORE_APP
-# endif
-# endif
#endif // defined(_WIN32)
#ifdef __sun__
diff --git a/libcxx/include/cstdlib b/libcxx/include/cstdlib
index 63a8cee5552f..9fad7e10cca6 100644
--- a/libcxx/include/cstdlib
+++ b/libcxx/include/cstdlib
@@ -115,10 +115,8 @@ using ::abort _LIBCPP_USING_IF_EXISTS;
using ::atexit _LIBCPP_USING_IF_EXISTS;
using ::exit _LIBCPP_USING_IF_EXISTS;
using ::_Exit _LIBCPP_USING_IF_EXISTS;
-#ifndef _LIBCPP_WINDOWS_STORE_APP
using ::getenv _LIBCPP_USING_IF_EXISTS;
using ::system _LIBCPP_USING_IF_EXISTS;
-#endif
using ::bsearch _LIBCPP_USING_IF_EXISTS;
using ::qsort _LIBCPP_USING_IF_EXISTS;
using ::abs _LIBCPP_USING_IF_EXISTS;