Skip to content

main.cpp: fix incorrect Windows detection macros.#17

Merged
thliebig merged 1 commit intothliebig:masterfrom
fasterEMS:msvc
Dec 21, 2025
Merged

main.cpp: fix incorrect Windows detection macros.#17
thliebig merged 1 commit intothliebig:masterfrom
fasterEMS:msvc

Conversation

@biergaizi
Copy link
Contributor

@biergaizi biergaizi commented Dec 21, 2025

To detect Windows, the _WIN32 and _WIN64 C macro contain one underscore, not two underscores. The keyword not is also an ISO 646 alias to !, so its use is discouraged.

To detect Windows, the _WIN32 and _WIN64 C macro contain
one underscore, not two underscores. The keyword "not" is
also an ISO 646 alias to "!", so its use is discouraged.

Signed-off-by: Yifeng Li <tomli@tomli.me>
@biergaizi
Copy link
Contributor Author

Merge ready.

@thliebig thliebig merged commit 731d2dc into thliebig:master Dec 21, 2025
11 checks passed
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