-
Notifications
You must be signed in to change notification settings - Fork 141
Get rid of the PRIuMAX
guard in git-compat-util.h
#399
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
Comments
Looking forward to this 😀 |
@harry-hov this is a really easy one. How about giving it a try? |
Git's code base already seems to be using `PRIdMAX` without any such fallback definition for quite a while (7545941 (json_writer: new routines to create JSON data, 2018-07-13), to be precise, and the first Git version to include that commit was v2.19.0). Therefore it should be safe to drop the fallback definition for `PRIuMAX` in `git-compat-util.h`. This addresses gitgitgadget#399 Signed-off-by: Hariom Verma <[email protected]>
Closed by e547e5a (Merge branch 'hv/assume-priumax-is-available-anywhere', 2019-12-05). (Unfortunately, I don't have permission to close issues here.) |
@Denton-L once you accept the invitation I just sent, you should have the permission. I'll leave this issue open so you can try? |
Thanks, it works! |
As mentioned in https://public-inbox.org/git/[email protected]/t/#u:
The
%lld
format is supported on Linux and macOS, but not on Windows. Therefore, we usePRIdMAX
instead and a cast the parameter tointmax_t
.The fact that
PRIdMAX
is used without any fallback definition ingit-compat-util.h
is a pretty good sign that we can drop the fallback forPRIuMAX
, too.The text was updated successfully, but these errors were encountered: