Skip to content

BUG: Restore vc141 support#20712

Merged
charris merged 1 commit intonumpy:mainfrom
isuruf:popcnt
Jan 3, 2022
Merged

BUG: Restore vc141 support#20712
charris merged 1 commit intonumpy:mainfrom
isuruf:popcnt

Conversation

@isuruf
Copy link
Copy Markdown
Contributor

@isuruf isuruf commented Jan 3, 2022

__popcnt needs intrin.h, but it was only being included implicitly by a long chain of
system headers on VS2019. Header files on VS2017 is slightly different and intrin.h was
not included implicitly. Headers that are used should be explicitly included.

@charris charris changed the title [BUG] Restore vc141 support BUG: Restore vc141 support Jan 3, 2022
@charris charris added this to the 1.22.1 release milestone Jan 3, 2022
@charris
Copy link
Copy Markdown
Member

charris commented Jan 3, 2022

LGTM. An explanatory comment would be useful in the include.

@charris
Copy link
Copy Markdown
Member

charris commented Jan 3, 2022

I assume this solves the vs2017 problem for anaconda.

@charris charris merged commit d64df45 into numpy:main Jan 3, 2022
@charris
Copy link
Copy Markdown
Member

charris commented Jan 3, 2022

Thanks Isuru.

@isuruf isuruf deleted the popcnt branch January 3, 2022 02:58
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jan 3, 2022
@charris charris removed this from the 1.22.1 release milestone Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants