mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
Merge branch 'hv/assume-priumax-is-available-anywhere'
We have had compatibility fallback macro definitions for "PRIuMAX", "PRIu32", etc. but did not for "PRIdMAX", while the code used the last one apparently without any hiccup reported recently. The fallback macro definitions for these <inttypes.h> macros that must appear in C99 systems have been removed. * hv/assume-priumax-is-available-anywhere: git-compat-util.h: drop the `PRIuMAX` and other fallback definitions
This commit is contained in:
commit
e547e5a89e
|
@ -320,26 +320,6 @@ char *gitdirname(char *);
|
|||
#define PATH_MAX 4096
|
||||
#endif
|
||||
|
||||
#ifndef PRIuMAX
|
||||
#define PRIuMAX "llu"
|
||||
#endif
|
||||
|
||||
#ifndef SCNuMAX
|
||||
#define SCNuMAX PRIuMAX
|
||||
#endif
|
||||
|
||||
#ifndef PRIu32
|
||||
#define PRIu32 "u"
|
||||
#endif
|
||||
|
||||
#ifndef PRIx32
|
||||
#define PRIx32 "x"
|
||||
#endif
|
||||
|
||||
#ifndef PRIo32
|
||||
#define PRIo32 "o"
|
||||
#endif
|
||||
|
||||
typedef uintmax_t timestamp_t;
|
||||
#define PRItime PRIuMAX
|
||||
#define parse_timestamp strtoumax
|
||||
|
|
Loading…
Reference in a new issue