[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
This commit is contained in:
Louis Dionne 2021-08-24 10:37:07 -04:00
parent 21f73d5826
commit a805a15b28
2 changed files with 0 additions and 12 deletions

View File

@ -294,16 +294,6 @@
# define _LIBCPP_HAS_BITSCAN64 # define _LIBCPP_HAS_BITSCAN64
# endif # endif
# define _LIBCPP_HAS_OPEN_WITH_WCHAR # 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) #endif // defined(_WIN32)
#ifdef __sun__ #ifdef __sun__

View File

@ -115,10 +115,8 @@ using ::abort _LIBCPP_USING_IF_EXISTS;
using ::atexit _LIBCPP_USING_IF_EXISTS; using ::atexit _LIBCPP_USING_IF_EXISTS;
using ::exit _LIBCPP_USING_IF_EXISTS; using ::exit _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 ::getenv _LIBCPP_USING_IF_EXISTS;
using ::system _LIBCPP_USING_IF_EXISTS; using ::system _LIBCPP_USING_IF_EXISTS;
#endif
using ::bsearch _LIBCPP_USING_IF_EXISTS; using ::bsearch _LIBCPP_USING_IF_EXISTS;
using ::qsort _LIBCPP_USING_IF_EXISTS; using ::qsort _LIBCPP_USING_IF_EXISTS;
using ::abs _LIBCPP_USING_IF_EXISTS; using ::abs _LIBCPP_USING_IF_EXISTS;