Skip to content

Conversation

@ldionne
Copy link
Member

@ldionne ldionne commented Jan 9, 2025

We had a 15 year old occurence of __uint32_t, likely from a time when uint32_t was not available everywhere.

@ldionne ldionne requested a review from a team as a code owner January 9, 2025 20:02
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Jan 9, 2025
@llvmbot
Copy link
Member

llvmbot commented Jan 9, 2025

@llvm/pr-subscribers-libcxx

Author: Louis Dionne (ldionne)

Changes

We had a 15 year old occurence of __uint32_t, likely from a time when uint32_t was not available everywhere.


Full diff: https://github.com/llvm/llvm-project/pull/122356.diff

1 Files Affected:

  • (modified) libcxx/include/__locale (+1-1)
diff --git a/libcxx/include/__locale b/libcxx/include/__locale
index 94dc8a08437bfe..8bedd113fb5910 100644
--- a/libcxx/include/__locale
+++ b/libcxx/include/__locale
@@ -348,7 +348,7 @@ public:
 #  define _LIBCPP_CTYPE_MASK_IS_COMPOSITE_ALPHA
 #elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
 #  ifdef __APPLE__
-  typedef __uint32_t mask;
+  typedef uint32_t mask;
 #  elif defined(__FreeBSD__)
   typedef unsigned long mask;
 #  elif defined(__NetBSD__)

@ldionne ldionne added the pending-ci Merging the PR is only pending completion of CI label Jan 10, 2025
We had a 15 year old occurence of __uint32_t, likely from a time
when uint32_t was not available everywhere.
@ldionne ldionne force-pushed the review/use-uint32_t-on-apple branch from bd50d6b to a9ed4b6 Compare January 10, 2025 17:23
@ldionne ldionne merged commit d1a622d into llvm:main Jan 13, 2025
78 checks passed
@ldionne ldionne deleted the review/use-uint32_t-on-apple branch January 13, 2025 14:10
kazutakahirata pushed a commit to kazutakahirata/llvm-project that referenced this pull request Jan 13, 2025
We had a 15 year old occurence of __uint32_t, likely from a time when
uint32_t was not available everywhere.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. pending-ci Merging the PR is only pending completion of CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants