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

"stdcall" missing for GetLogicalProcessorInformation declaration #4

Closed
CuriousKit opened this issue Oct 13, 2023 · 0 comments
Closed

Comments

@CuriousKit
Copy link

When compiling the benchmark for 32-bit Windows, errors occur when GetLogicalProcessorInformation is called because it is missing the stdcall directive.

On lines 1022-1023 of Spring.Benchmark.pas:

funnction GetLogicalProcessorInformation(Buffer: PSystemLogicalProcessorInformation;
  var ReturnedLength: DWORD): BOOL; external kernel32 name 'GetLogicalProcessorInformation';

It should instead be:

function GetLogicalProcessorInformation(Buffer: PSystemLogicalProcessorInformation;
  var ReturnedLength: DWORD): BOOL; stdcall; external kernel32 name 'GetLogicalProcessorInformation';

Notably, the declarations for WakeAllConditionVariable and SleepConditionVariableCS do have stdcall present.

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

No branches or pull requests

1 participant