[libcxx-commits] [libcxx] [libc++][NFC] Use uint32_t instead of __uint32_t on Apple (PR #122356)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jan 9 12:02:10 PST 2025


https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/122356

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

>From bd50d6bbed4fc8842d2952d7c0dc9d7893233b23 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Thu, 9 Jan 2025 15:00:55 -0500
Subject: [PATCH] [libc++][NFC] Use uint32_t instead of __uint32_t on Apple

We had a 15 year old occurence of __uint32_t, likely from a time
when uint32_t was not available everywhere.
---
 libcxx/include/__locale | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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__)



More information about the libcxx-commits mailing list