Skip to content

Commit 800a47d

Browse files
committed
[libc++][NFC] Fix include guards inside locale_base_api
1 parent 21ecd4a commit 800a47d

File tree

10 files changed

+30
-30
lines changed

10 files changed

+30
-30
lines changed

libcxx/include/__locale_dir/locale_base_api/android.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
#ifndef _LIBCPP___LOCALE_LOCALE_BASE_API_ANDROID_H
11-
#define _LIBCPP___LOCALE_LOCALE_BASE_API_ANDROID_H
10+
#ifndef _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_ANDROID_H
11+
#define _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_ANDROID_H
1212

1313
#include <stdlib.h>
1414

@@ -47,4 +47,4 @@ inline _LIBCPP_HIDE_FROM_ABI double strtod_l(const char* __nptr, char** __endptr
4747
# endif // __NDK_MAJOR__ <= 16
4848
#endif // __has_include(<android/ndk-version.h>)
4949

50-
#endif // _LIBCPP___LOCALE_LOCALE_BASE_API_ANDROID_H
50+
#endif // _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_ANDROID_H

libcxx/include/__locale_dir/locale_base_api/bsd_locale_defaults.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
// we will define the mapping from an internal macro to the real BSD symbol.
1212
//===----------------------------------------------------------------------===//
1313

14-
#ifndef _LIBCPP___LOCALE_LOCALE_BASE_API_BSD_LOCALE_DEFAULTS_H
15-
#define _LIBCPP___LOCALE_LOCALE_BASE_API_BSD_LOCALE_DEFAULTS_H
14+
#ifndef _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_BSD_LOCALE_DEFAULTS_H
15+
#define _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_BSD_LOCALE_DEFAULTS_H
1616

1717
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
1818
# pragma GCC system_header
@@ -33,4 +33,4 @@
3333
#define __libcpp_asprintf_l(...) asprintf_l(__VA_ARGS__)
3434
#define __libcpp_sscanf_l(...) sscanf_l(__VA_ARGS__)
3535

36-
#endif // _LIBCPP___LOCALE_LOCALE_BASE_API_BSD_LOCALE_DEFAULTS_H
36+
#endif // _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_BSD_LOCALE_DEFAULTS_H

libcxx/include/__locale_dir/locale_base_api/bsd_locale_fallbacks.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
// of those functions for non-BSD platforms.
1111
//===----------------------------------------------------------------------===//
1212

13-
#ifndef _LIBCPP___LOCALE_LOCALE_BASE_API_BSD_LOCALE_FALLBACKS_H
14-
#define _LIBCPP___LOCALE_LOCALE_BASE_API_BSD_LOCALE_FALLBACKS_H
13+
#ifndef _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_BSD_LOCALE_FALLBACKS_H
14+
#define _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_BSD_LOCALE_FALLBACKS_H
1515

1616
#include <__locale_dir/locale_base_api/locale_guard.h>
1717
#include <cstdio>
@@ -123,4 +123,4 @@ inline _LIBCPP_ATTRIBUTE_FORMAT(__scanf__, 3, 4) int __libcpp_sscanf_l(
123123

124124
_LIBCPP_END_NAMESPACE_STD
125125

126-
#endif // _LIBCPP___LOCALE_LOCALE_BASE_API_BSD_LOCALE_FALLBACKS_H
126+
#endif // _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_BSD_LOCALE_FALLBACKS_H

libcxx/include/__locale_dir/locale_base_api/fuchsia.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
#ifndef _LIBCPP___LOCALE_LOCALE_BASE_API_FUCHSIA_H
11-
#define _LIBCPP___LOCALE_LOCALE_BASE_API_FUCHSIA_H
10+
#ifndef _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_FUCHSIA_H
11+
#define _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_FUCHSIA_H
1212

1313
#include <__support/xlocale/__posix_l_fallback.h>
1414
#include <__support/xlocale/__strtonum_fallback.h>
1515
#include <cstdlib>
1616
#include <cwchar>
1717

18-
#endif // _LIBCPP___LOCALE_LOCALE_BASE_API_FUCHSIA_H
18+
#endif // _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_FUCHSIA_H

libcxx/include/__locale_dir/locale_base_api/ibm.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
#ifndef _LIBCPP___LOCALE_LOCALE_BASE_API_IBM_H
11-
#define _LIBCPP___LOCALE_LOCALE_BASE_API_IBM_H
10+
#ifndef _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_IBM_H
11+
#define _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_IBM_H
1212

1313
#if defined(__MVS__)
1414
# include <__support/ibm/locale_mgmt_zos.h>
@@ -105,4 +105,4 @@ _LIBCPP_ATTRIBUTE_FORMAT(__printf__, 2, 0) int vasprintf(char** strp, const char
105105
return str_size;
106106
}
107107

108-
#endif // _LIBCPP___LOCALE_LOCALE_BASE_API_IBM_H
108+
#endif // _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_IBM_H

libcxx/include/__locale_dir/locale_base_api/locale_guard.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef _LIBCPP___LOCALE_LOCALE_BASE_API_LOCALE_GUARD_H
10-
#define _LIBCPP___LOCALE_LOCALE_BASE_API_LOCALE_GUARD_H
9+
#ifndef _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_LOCALE_GUARD_H
10+
#define _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_LOCALE_GUARD_H
1111

1212
#include <__config>
1313
#include <__locale> // for locale_t
@@ -75,4 +75,4 @@ struct __libcpp_locale_guard {
7575

7676
_LIBCPP_END_NAMESPACE_STD
7777

78-
#endif // _LIBCPP___LOCALE_LOCALE_BASE_API_LOCALE_GUARD_H
78+
#endif // _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_LOCALE_GUARD_H

libcxx/include/__locale_dir/locale_base_api/musl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
// in Musl.
1515
//===----------------------------------------------------------------------===//
1616

17-
#ifndef _LIBCPP___LOCALE_LOCALE_BASE_API_MUSL_H
18-
#define _LIBCPP___LOCALE_LOCALE_BASE_API_MUSL_H
17+
#ifndef _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_MUSL_H
18+
#define _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_MUSL_H
1919

2020
#include <cstdlib>
2121
#include <cwchar>
@@ -28,4 +28,4 @@ inline _LIBCPP_HIDE_FROM_ABI unsigned long long strtoull_l(const char* __nptr, c
2828
return ::strtoull(__nptr, __endptr, __base);
2929
}
3030

31-
#endif // _LIBCPP___LOCALE_LOCALE_BASE_API_MUSL_H
31+
#endif // _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_MUSL_H

libcxx/include/__locale_dir/locale_base_api/newlib.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef _LIBCPP___LOCALE_LOCALE_BASE_API_NEWLIB_H
10-
#define _LIBCPP___LOCALE_LOCALE_BASE_API_NEWLIB_H
9+
#ifndef _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_NEWLIB_H
10+
#define _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_NEWLIB_H
1111

12-
#endif // _LIBCPP___LOCALE_LOCALE_BASE_API_NEWLIB_H
12+
#endif // _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_NEWLIB_H

libcxx/include/__locale_dir/locale_base_api/openbsd.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
#ifndef _LIBCPP___LOCALE_LOCALE_BASE_API_OPENBSD_H
11-
#define _LIBCPP___LOCALE_LOCALE_BASE_API_OPENBSD_H
10+
#ifndef _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_OPENBSD_H
11+
#define _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_OPENBSD_H
1212

1313
#include <__support/xlocale/__strtonum_fallback.h>
1414
#include <clocale>
1515
#include <cstdlib>
1616
#include <ctype.h>
1717
#include <cwctype>
1818

19-
#endif // _LIBCPP___LOCALE_LOCALE_BASE_API_OPENBSD_H
19+
#endif // _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_OPENBSD_H

libcxx/include/__locale_dir/locale_base_api/win32.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
#ifndef _LIBCPP___LOCALE_LOCALE_BASE_API_WIN32_H
11-
#define _LIBCPP___LOCALE_LOCALE_BASE_API_WIN32_H
10+
#ifndef _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_WIN32_H
11+
#define _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_WIN32_H
1212

1313
#include <__config>
1414
#include <cstddef>
@@ -232,4 +232,4 @@ _LIBCPP_EXPORTED_FROM_ABI int vasprintf_l(char** __ret, locale_t __loc, const ch
232232
// not-so-pressing FIXME: use locale to determine blank characters
233233
inline int iswblank_l(wint_t __c, locale_t /*loc*/) { return (__c == L' ' || __c == L'\t'); }
234234

235-
#endif // _LIBCPP___LOCALE_LOCALE_BASE_API_WIN32_H
235+
#endif // _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_WIN32_H

0 commit comments

Comments
 (0)