Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

[x86/Linux] Fix cannot initialize a variable of type 'CLRFLSGETBLOCK'#8332

Closed
seanshpark wants to merge 1 commit intodotnet:masterfrom
seanshpark:x86uti01
Closed

[x86/Linux] Fix cannot initialize a variable of type 'CLRFLSGETBLOCK'#8332
seanshpark wants to merge 1 commit intodotnet:masterfrom
seanshpark:x86uti01

Conversation

@seanshpark
Copy link
Copy Markdown

Fix compile error for x86/Linux

  • remove __stdcall for ClrFlsGetBlockGeneric()
  • fix "cannot initialize a variable of type 'CLRFLSGETBLOCK'"


void ** __stdcall ClrFlsGetBlockGeneric()
void ** ClrFlsGetBlockGeneric()
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

How about using LPVOID *ClrFlsGetBlockGeneric()?

CLRFLSGETBLOCK is defined as follows:

src$ grep -Rn 'CLRFLSGETBLOCK'
inc/clrhost.h:82:typedef LPVOID* (*CLRFLSGETBLOCK)();

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

sure :)

Fix compile error for x86/Linux
- remove `__stdcall` for `ClrFlsGetBlockGeneric()`
- fix "cannot initialize a variable of type 'CLRFLSGETBLOCK'"
@seanshpark
Copy link
Copy Markdown
Author

Closing as already exist in #8318

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants