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

MSYS2 bugs into MS Specific _BitScanForward64 and _BitScanReverse64 #1262

Open
d3vv opened this issue May 22, 2018 · 0 comments
Open

MSYS2 bugs into MS Specific _BitScanForward64 and _BitScanReverse64 #1262

d3vv opened this issue May 22, 2018 · 0 comments

Comments

@d3vv
Copy link

d3vv commented May 22, 2018

Compiling under MSYS2 gcc we have errors like:

BitBoards.h:4334:29: error: cannot convert ‘long unsigned int*’ to ‘unsigned int*’ for argument ‘1’ to ‘unsigned char _BitScanForward64(unsigned int*, long long unsigned int)’
BitBoards.h:4343:29: error: cannot convert ‘long unsigned int*’ to ‘unsigned int*’ for argument ‘1’ to ‘unsigned char _BitScanReverse64(unsigned int*, long long unsigned int)’

This is wrong due to for example:

https://msdn.microsoft.com/en-us/library/wfd9z0bb.aspx

unsigned char _BitScanForward64(
unsigned long * Index,
unsigned __int64 Mask
);

right is unsigned long, not uint in 1st argument...

MINGW64 from msys2 doesn't have such bugs...

So... other old problem is that we can't to use "GetTickCount64" for mingw or msys:

'GetTickCount64' was not declared in this scope

We can use "GetTickCount" only...

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