mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 18:38:58 +00:00
mingw: Fix printf identifiers
This commit is contained in:
parent
c103d7b4b7
commit
780bea6e26
@ -65,6 +65,13 @@
|
|||||||
# define PRIuZ "zu"
|
# define PRIuZ "zu"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Define the printf format for 64 bit types */
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
# define PRIdMAX "I64d"
|
||||||
|
#else
|
||||||
|
# define PRIdMAX "lld"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Micosoft Visual C/C++ */
|
/* Micosoft Visual C/C++ */
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
/* disable "deprecated function" warnings */
|
/* disable "deprecated function" warnings */
|
||||||
|
@ -167,7 +167,7 @@ int git_config_delete(git_config *cfg, const char *name)
|
|||||||
int git_config_set_long(git_config *cfg, const char *name, long long value)
|
int git_config_set_long(git_config *cfg, const char *name, long long value)
|
||||||
{
|
{
|
||||||
char str_value[32]; /* All numbers should fit in here */
|
char str_value[32]; /* All numbers should fit in here */
|
||||||
p_snprintf(str_value, sizeof(str_value), "%lld", value);
|
p_snprintf(str_value, sizeof(str_value), "%" PRIdMAX, value);
|
||||||
return git_config_set_string(cfg, name, str_value);
|
return git_config_set_string(cfg, name, str_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user