File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
libcxx/include/__locale_dir Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 125
125
#include < __cstddef/size_t.h>
126
126
#include < __utility/forward.h>
127
127
#include < string.h>
128
+ #include < time.h>
128
129
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
129
130
# include < wctype.h>
130
131
#endif
Original file line number Diff line number Diff line change 10
10
#define _LIBCPP___LOCALE_DIR_LOCALE_GUARD_H
11
11
12
12
#include < __config>
13
- #include < __locale>
13
+ #include < __locale> // for locale_t
14
14
#include < clocale>
15
15
16
16
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
@@ -21,7 +21,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
21
21
22
22
#if defined(_LIBCPP_MSVCRT_LIKE)
23
23
struct __locale_guard {
24
- __locale_guard (__locale:: __locale_t __l) : __status(_configthreadlocale(_ENABLE_PER_THREAD_LOCALE)) {
24
+ __locale_guard (locale_t __l) : __status(_configthreadlocale(_ENABLE_PER_THREAD_LOCALE)) {
25
25
// Setting the locale can be expensive even when the locale given is
26
26
// already the current locale, so do an explicit check to see if the
27
27
// current locale is already the one we want.
@@ -59,14 +59,14 @@ struct __locale_guard {
59
59
};
60
60
#else
61
61
struct __locale_guard {
62
- _LIBCPP_HIDE_FROM_ABI __locale_guard (__locale:: __locale_t & __loc) : __old_loc_(__locale::__uselocale (__loc)) {}
62
+ _LIBCPP_HIDE_FROM_ABI __locale_guard (locale_t & __loc) : __old_loc_(uselocale (__loc)) {}
63
63
64
64
_LIBCPP_HIDE_FROM_ABI ~__locale_guard () {
65
65
if (__old_loc_)
66
- __locale::__uselocale (__old_loc_);
66
+ uselocale (__old_loc_);
67
67
}
68
68
69
- __locale:: __locale_t __old_loc_;
69
+ locale_t __old_loc_;
70
70
71
71
__locale_guard (__locale_guard const &) = delete ;
72
72
__locale_guard& operator =(__locale_guard const &) = delete ;
You can’t perform that action at this time.
0 commit comments