Skip to content

Commit 03d92b6

Browse files
committed
Rename _LIBCXX_* to _LIBCPP_*
Rename _LIBCXX_* options to _LIBCPP_* to follow libcxx conventions.
1 parent dad9c9a commit 03d92b6

File tree

19 files changed

+26
-26
lines changed

19 files changed

+26
-26
lines changed

libcxx/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -753,14 +753,14 @@ config_define(${LIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS} _LIBCPP_HAS_VENDO
753753

754754
# Set C library in use
755755
if (RUNTIMES_USE_LIBC STREQUAL "picolibc")
756-
config_define(1 _LIBCXX_LIBC_PICOLIBC)
756+
config_define(1 _LIBCPP_LIBC_PICOLIBC)
757757
# picolibc is derived from newlib and behaves the same in regards to libc++
758758
# so setting both here:
759-
# * _LIBCXX_LIBC_NEWLIB is used now
760-
# * _LIBCXX_LIBC_PICOLIBC can be used for further customizations later
761-
config_define(1 _LIBCXX_LIBC_NEWLIB)
759+
# * _LIBCPP_LIBC_NEWLIB is used now
760+
# * _LIBCPP_LIBC_PICOLIBC can be used for further customizations later
761+
config_define(1 _LIBCPP_LIBC_NEWLIB)
762762
elseif (RUNTIMES_USE_LIBC STREQUAL "newlib")
763-
config_define(1 _LIBCXX_LIBC_NEWLIB)
763+
config_define(1 _LIBCPP_LIBC_NEWLIB)
764764
endif()
765765

766766
# TODO: Remove in LLVM 21. We're leaving an error to make this fail explicitly.

libcxx/include/__config_site.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
#cmakedefine _LIBCPP_HARDENING_MODE_DEFAULT @_LIBCPP_HARDENING_MODE_DEFAULT@
4444

4545
// C libraries
46-
#cmakedefine01 _LIBCXX_LIBC_PICOLIBC
47-
#cmakedefine01 _LIBCXX_LIBC_NEWLIB
46+
#cmakedefine01 _LIBCPP_LIBC_PICOLIBC
47+
#cmakedefine01 _LIBCPP_LIBC_NEWLIB
4848

4949
// __USE_MINGW_ANSI_STDIO gets redefined on MinGW
5050
#ifdef __clang__

libcxx/include/__cxx03/__fwd/ios.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ using wios = basic_ios<wchar_t>;
3131
template <class _CharT, class _Traits>
3232
class _LIBCPP_PREFERRED_NAME(ios) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wios)) basic_ios;
3333

34-
#if _LIBCXX_LIBC_NEWLIB
34+
#if _LIBCPP_LIBC_NEWLIB
3535
// On newlib, off_t is 'long int'
3636
using streamoff = long int; // for char_traits in <string>
3737
#else

libcxx/include/__cxx03/__locale

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ public:
384384
static const mask xdigit = _ISXDIGIT;
385385
static const mask blank = _ISBLANK;
386386
static const mask __regex_word = 0x8000;
387-
#elif _LIBCXX_LIBC_NEWLIB
387+
#elif _LIBCPP_LIBC_NEWLIB
388388
// Same type as Newlib's _ctype_ array in newlib/libc/include/ctype.h.
389389
typedef char mask;
390390
// In case char is signed, static_cast is needed to avoid warning on

libcxx/include/__cxx03/__locale_dir/locale_base_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# include <__cxx03/__locale_dir/locale_base_api/android.h>
1818
#elif defined(__sun__)
1919
# include <__cxx03/__locale_dir/locale_base_api/solaris.h>
20-
#elif _LIBCXX_LIBC_NEWLIB
20+
#elif _LIBCPP_LIBC_NEWLIB
2121
# include <__cxx03/__locale_dir/locale_base_api/newlib.h>
2222
#elif defined(__OpenBSD__)
2323
# include <__cxx03/__locale_dir/locale_base_api/openbsd.h>

libcxx/include/__cxx03/fstream

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ typedef basic_fstream<wchar_t> wfstream;
209209
_LIBCPP_PUSH_MACROS
210210
#include <__cxx03/__undef_macros>
211211

212-
#if defined(_LIBCPP_MSVCRT) || _LIBCXX_LIBC_NEWLIB
212+
#if defined(_LIBCPP_MSVCRT) || _LIBCPP_LIBC_NEWLIB
213213
# define _LIBCPP_HAS_NO_OFF_T_FUNCTIONS
214214
#endif
215215

libcxx/include/__cxx03/locale

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ template <class charT> class messages_byname;
220220

221221
# if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
222222
// Most unix variants have catopen. These are the specific ones that don't.
223-
# if !defined(__BIONIC__) && !_LIBCXX_LIBC_NEWLIB && !defined(__EMSCRIPTEN__)
223+
# if !defined(__BIONIC__) && !_LIBCPP_LIBC_NEWLIB && !defined(__EMSCRIPTEN__)
224224
# define _LIBCPP_HAS_CATOPEN 1
225225
# include <nl_types.h>
226226
# endif

libcxx/include/__cxx03/regex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ public:
984984
typedef _CharT char_type;
985985
typedef basic_string<char_type> string_type;
986986
typedef locale locale_type;
987-
#if defined(__BIONIC__) || _LIBCXX_LIBC_NEWLIB
987+
#if defined(__BIONIC__) || _LIBCPP_LIBC_NEWLIB
988988
// Originally bionic's ctype_base used its own ctype masks because the
989989
// builtin ctype implementation wasn't in libc++ yet. Bionic's ctype mask
990990
// was only 8 bits wide and already saturated, so it used a wider type here

libcxx/include/__fwd/ios.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ using wios = basic_ios<wchar_t>;
3131
template <class _CharT, class _Traits>
3232
class _LIBCPP_PREFERRED_NAME(ios) _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wios)) basic_ios;
3333

34-
#if _LIBCXX_LIBC_NEWLIB
34+
#if _LIBCPP_LIBC_NEWLIB
3535
// On newlib, off_t is 'long int'
3636
using streamoff = long int; // for char_traits in <string>
3737
#else

libcxx/include/__locale

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public:
389389
static const mask xdigit = _ISXDIGIT;
390390
static const mask blank = _ISBLANK;
391391
static const mask __regex_word = 0x8000;
392-
# elif _LIBCXX_LIBC_NEWLIB
392+
# elif _LIBCPP_LIBC_NEWLIB
393393
// Same type as Newlib's _ctype_ array in newlib/libc/include/ctype.h.
394394
typedef char mask;
395395
// In case char is signed, static_cast is needed to avoid warning on

0 commit comments

Comments
 (0)