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

Remove HWY_CONTRIB_DLLEXPORT from definition of function #2255

Closed
wants to merge 1 commit into from
Closed

Remove HWY_CONTRIB_DLLEXPORT from definition of function #2255

wants to merge 1 commit into from

Conversation

xiaozhuai
Copy link
Contributor

@xiaozhuai xiaozhuai commented Jun 24, 2024

HWY_CONTRIB_DLLEXPORT are already set correctly in the declaration. There is no need to dup it on definition of function. Which cause an error on msvc error C2491: 'hwy::GetThreadAffinity': definition of dllimport function not allowed

@xiaozhuai xiaozhuai closed this Jun 24, 2024
@jan-wassenberg
Copy link
Member

Hi @xiaozhuai , just to confirm: is the error still happening in MSVC?

@xiaozhuai
Copy link
Contributor Author

Hi @xiaozhuai , just to confirm: is the error still happening in MSVC?

No, it has been fixed in #2229. But it's not include in latest 1.2.0.

@jan-wassenberg
Copy link
Member

Got it, thanks. We might do another release in a few weeks.

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