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

Use correct _WIN32 macro for checking Windows target #5710

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

giordano
Copy link
Contributor

@giordano giordano commented Oct 30, 2022

The correct macro to identify Windows target is _WIN32, not WIN32: https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170#microsoft-specific-predefined-macros. Besides, according to C standard, compilers can't predefine macros without one leading underscore (or two if the the first letter is lowercase).

The correct macro to identify Windows target is `_WIN32`, not `WIN32`: https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170#microsoft-specific-predefined-macros.  Besides, according to C standard, compilers can't predefine macros without leading underscore (or two if the the first letter is lowercase).
@greglandrum greglandrum added bug infrastructure build infrastructure and the like labels Oct 31, 2022
@greglandrum greglandrum added this to the 2022_09_2 milestone Oct 31, 2022
Copy link
Member

@greglandrum greglandrum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@greglandrum greglandrum merged commit c985ccf into rdkit:master Oct 31, 2022
@greglandrum
Copy link
Member

Thanks @giordano!

@giordano giordano deleted the patch-1 branch October 31, 2022 08:26
greglandrum pushed a commit that referenced this pull request Nov 23, 2022
The correct macro to identify Windows target is `_WIN32`, not `WIN32`: https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-170#microsoft-specific-predefined-macros.  Besides, according to C standard, compilers can't predefine macros without leading underscore (or two if the the first letter is lowercase).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug infrastructure build infrastructure and the like
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants