Skip to content

Commit e1ddc33

Browse files
authored
[libc++] Move __libcpp_timespec_t into namespace std (#80004)
It was previously defined outside of namespace std for apparently no good reason.
1 parent 201eb2b commit e1ddc33

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

libcxx/include/__thread/support.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
// The following functionality must be provided by any implementation:
2424
//
2525
26+
_LIBCPP_BEGIN_NAMESPACE_STD
27+
2628
using __libcpp_timespec_t = ...;
2729
2830
//
@@ -98,6 +100,8 @@ int __libcpp_tls_create(__libcpp_tls_key*, void (*__at_exit)(void*));
98100
void* __libcpp_tls_get(__libcpp_tls_key);
99101
int __libcpp_tls_set(__libcpp_tls_key, void*);
100102
103+
_LIBCPP_END_NAMESPACE_STD
104+
101105
*/
102106

103107
#if !defined(_LIBCPP_HAS_NO_THREADS)

libcxx/include/__thread/support/c11.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
# pragma GCC system_header
2121
#endif
2222

23-
typedef ::timespec __libcpp_timespec_t;
24-
2523
_LIBCPP_BEGIN_NAMESPACE_STD
2624

25+
using __libcpp_timespec_t = ::timespec;
26+
2727
//
2828
// Mutex
2929
//

libcxx/include/__thread/support/pthread.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
# pragma GCC system_header
3737
#endif
3838

39-
typedef ::timespec __libcpp_timespec_t;
40-
4139
_LIBCPP_BEGIN_NAMESPACE_STD
4240

41+
using __libcpp_timespec_t = ::timespec;
42+
4343
//
4444
// Mutex
4545
//

libcxx/include/__thread/support/windows.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
# pragma GCC system_header
1919
#endif
2020

21-
typedef ::timespec __libcpp_timespec_t;
22-
2321
_LIBCPP_BEGIN_NAMESPACE_STD
2422

23+
using __libcpp_timespec_t = ::timespec;
24+
2525
//
2626
// Mutex
2727
//

0 commit comments

Comments
 (0)