-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix gmp_long/gmp_ulong typedef warning on Windows x86 #11112
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
Conversation
CI failure is unrelated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this only happening on 64bits? because this change seems weird and it would make more sense to have an #if defined(PHP_WIN32) || defined(_WIN64)
This reverts commit 6fe0a9e.
yes, on x64 only, x86 need this PR/fix |
@nielsdos can you please approve based on discussion in #8479 (comment) |
I'll take a look later this week with my Windows testing VM. |
I build this in my Windows VM for x86 and I think this looks right. Thanks. I do however think that targeting master is more appropriate: there seems to be an (unwritten?) rule that compiler warnings that don't cause bugs or errors should target master.
So here's something that always confused me too: PHP_WIN32 just means Windows (for BC reasons), it is set both on 32-bit and 64-bit. Want to detect Windows 64-bit? Then use _WIN64... |
Thank you for your post. The PR is retargeted to |
Thanks! |
extracted from #8479
discussed in #8479 (comment)
introduced in 08b732f