Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix win32 macro detection for win95 #731

Merged
merged 1 commit into from
May 30, 2024
Merged
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
4 changes: 2 additions & 2 deletions include/fast_io_hosted/platforms/win32.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ inline void *create_win32_temp_file_impl()
}
auto arrp{arr + temp_path_size};
constexpr bool winver_support_rtl_gen_random{
#if !defined(_WIN32_WINNT) || _WIN32_WINNT >= 0x0501
#if !defined(_WIN32_WINDOWS) && (!defined(_WIN32_WINNT) || _WIN32_WINNT >= 0x0501)
// RtlGenRandom support starts since Windows XP
is_nt
#endif
Expand Down Expand Up @@ -946,7 +946,7 @@ struct
using native_handle_type = void *;
void *handle{};
explicit constexpr win32_file_factory(void *hd) noexcept
: handle(hd){};
: handle(hd) {};
win32_file_factory(win32_file_factory const &) = delete;
win32_file_factory &operator=(win32_file_factory const &) = delete;
~win32_file_factory()
Expand Down
Loading