Skip to content

Force use of windows.h instead of default winnt.h#4288

Merged
clemahieu merged 2 commits intonanocurrency:developfrom
RickiNano:bugfix/fix-windows-build
Sep 21, 2023
Merged

Force use of windows.h instead of default winnt.h#4288
clemahieu merged 2 commits intonanocurrency:developfrom
RickiNano:bugfix/fix-windows-build

Conversation

@RickiNano
Copy link
Copy Markdown
Contributor

@RickiNano RickiNano commented Sep 21, 2023

This fixes the "No target Architecture" error when building on windows.
Clang format will report an error but the windows.h include must be before processthreadapi.h to work properly.

This fixes the "No target Architecture" error when building on windows.
The windows.h include needs to be before processthreadapi.h to work properly but clang complains about this
@clemahieu
Copy link
Copy Markdown
Contributor

Looks like clang format doesn't like the non-alphabetical order of headers.

Is processthreadsapi.h needed at all with windows.h?

@RickiNano
Copy link
Copy Markdown
Contributor Author

You are right. It still builds without the processthreadsapi.h include.
I've updated the PR

@clemahieu clemahieu merged commit 1de26b6 into nanocurrency:develop Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants