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

Replace g_tkCorEncodeToken with CorSigDecodeTokenType() inline function to keep its definition in cor.h #41797

Merged

Conversation

k15tfu
Copy link
Contributor

@k15tfu k15tfu commented Sep 3, 2020

Wrap g_tkCorEncodeToken into inline function to keep its definition in cor.h

Fixes undefined references to g_tkCorEncodeToken when using CorSigCompressToken()
in user projects with shared Profiling API headers like cor.h / corprof.h

See #40254 (comment).

cc @janvorli @jkotas

src/coreclr/src/inc/cor.h Outdated Show resolved Hide resolved
…on to keep its definition in cor.h

Fixes undefined references to g_tkCorEncodeToken when using CorSigCompressToken()
in user projects with shared Profiling API headers like cor.h / corprof.h

See dotnet#40254 (comment).
@k15tfu k15tfu force-pushed the fix-undef-refs-g_tkCorEncodeToken-cor.h branch from 9e78313 to e856dca Compare September 3, 2020 15:59
@k15tfu k15tfu changed the title Wrap g_tkCorEncodeToken into inline function to keep its definition in cor.h Replace g_tkCorEncodeToken with CorSigDecodeTokenType() inline function to keep its definition in cor.h Sep 3, 2020
src/coreclr/src/inc/cor.h Outdated Show resolved Hide resolved
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Thanks

@jkotas jkotas merged commit 353919f into dotnet:master Sep 3, 2020
@k15tfu k15tfu deleted the fix-undef-refs-g_tkCorEncodeToken-cor.h branch September 4, 2020 08:11
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants