Skip to content

Commit c4c553d

Browse files
committed
Add some headers as suggested by Copilot
1 parent 996a242 commit c4c553d

5 files changed

Lines changed: 7 additions & 1 deletion

File tree

cppwinrt/cmd_reader.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <limits>
66
#include <climits>
77
#include <cstdint>
8+
#include <cctype>
89
#include <string>
910
#include <string_view>
1011
#include <map>

cppwinrt/text_writer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include <cassert>
4+
#include <cstdio>
45
#include <filesystem>
56
#include <fstream>
67
#include <sstream>

strings/base_error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace winrt::impl
4545
{
4646
wchar_t const* back = message + size - 1;
4747

48-
while (size&& std::iswspace(*back))
48+
while (size && std::iswspace(*back))
4949
{
5050
--size;
5151
--back;

strings/base_fast_forward.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include <cstddef>
22
#include <atomic>
3+
#include <cstdint>
4+
#include <cstring>
35

46
#define WINRT_IMPL_STRING_1(expression) #expression
57
#define WINRT_IMPL_STRING(expression) WINRT_IMPL_STRING_1(expression)

strings/base_includes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include <charconv>
77
#include <chrono>
88
#include <cstddef>
9+
#include <cstdint>
10+
#include <cstdlib>
911
#include <cstring>
1012
#include <cwchar>
1113
#include <cwctype>

0 commit comments

Comments
 (0)