Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions stl/inc/cstddef
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ _STL_DISABLE_CLANG_WARNINGS
#undef intrinsic

_STD_BEGIN
_EXPORT_STD using _CSTD ptrdiff_t;
_EXPORT_STD using _CSTD size_t;
// using deduction to define size_t and ptrdiff_t for better diagnostics, see GH-5699
_EXPORT_STD using ptrdiff_t = decltype((int*) (nullptr) - (int*) (nullptr));
_EXPORT_STD using size_t = decltype(sizeof(0));
_EXPORT_STD using max_align_t = double; // most aligned type
_EXPORT_STD using nullptr_t = decltype(nullptr);

Expand Down
2 changes: 1 addition & 1 deletion stl/inc/cstdio
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ _STD_BEGIN

using _CSTD _Mbstatet;

_EXPORT_STD using _CSTD size_t;
_EXPORT_STD using size_t = decltype(sizeof(0));
_EXPORT_STD using _CSTD fpos_t;
_EXPORT_STD using _CSTD FILE;
_EXPORT_STD using _CSTD clearerr;
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/cstdlib
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ _NODISCARD _Check_return_ inline long double abs(_In_ long double _Xx) noexcept
_END_EXTERN_CXX_WORKAROUND

_STD_BEGIN
_EXPORT_STD using _CSTD size_t;
_EXPORT_STD using size_t = decltype(sizeof(0));
_EXPORT_STD using _CSTD div_t;
_EXPORT_STD using _CSTD ldiv_t;
_EXPORT_STD using _CSTD abort;
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/cstring
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ _STD_BEGIN
#pragma warning(push)
#pragma warning(disable : 4995) // name was marked as #pragma deprecated

_EXPORT_STD using _CSTD size_t;
_EXPORT_STD using size_t = decltype(sizeof(0));
_EXPORT_STD using _CSTD memchr;
_EXPORT_STD using _CSTD memcmp;
_EXPORT_STD using _CSTD memcpy;
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/ctime
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _STL_DISABLE_CLANG_WARNINGS

_STD_BEGIN
_EXPORT_STD using _CSTD clock_t;
_EXPORT_STD using _CSTD size_t;
_EXPORT_STD using size_t = decltype(sizeof(0));
_EXPORT_STD using _CSTD time_t;
_EXPORT_STD using _CSTD tm;
_EXPORT_STD using _CSTD asctime;
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/cuchar
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _STL_DISABLE_CLANG_WARNINGS

_STD_BEGIN
_EXPORT_STD using _CSTD mbstate_t;
_EXPORT_STD using _CSTD size_t;
_EXPORT_STD using size_t = decltype(sizeof(0));
_EXPORT_STD using _CSTD mbrtoc16;
_EXPORT_STD using _CSTD c16rtomb;
_EXPORT_STD using _CSTD mbrtoc32;
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/cwchar
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ _STD_BEGIN
using _CSTD _Mbstatet;

_EXPORT_STD using _CSTD mbstate_t;
_EXPORT_STD using _CSTD size_t;
_EXPORT_STD using size_t = decltype(sizeof(0));
_EXPORT_STD using _CSTD tm;
_EXPORT_STD using _CSTD wint_t;

Expand Down
Loading