[libcxx-commits] [PATCH] D108632: [libc++] Remove workaround for missing declarations on Windows store apps

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 10 06:07:22 PST 2022


ldionne updated this revision to Diff 414364.
ldionne added a comment.
Herald added a project: All.

Rebase onto main -- this should be ready to land now that we have bumped our compiler support window.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108632/new/

https://reviews.llvm.org/D108632

Files:
  libcxx/include/__config
  libcxx/include/cstdlib


Index: libcxx/include/cstdlib
===================================================================
--- libcxx/include/cstdlib
+++ libcxx/include/cstdlib
@@ -115,10 +115,8 @@
 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;
Index: libcxx/include/__config
===================================================================
--- libcxx/include/__config
+++ libcxx/include/__config
@@ -297,16 +297,6 @@
 #  if defined(_LIBCPP_MSVCRT)
 #    define _LIBCPP_HAS_QUICK_EXIT
 #  endif
-
-// 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__


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108632.414364.patch
Type: text/x-patch
Size: 1235 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220310/16415dd1/attachment.bin>


More information about the libcxx-commits mailing list