Skip to content

Commit e547e5a

Browse files
committed
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
2 parents 88cf809 + ebc3278 commit e547e5a

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

git-compat-util.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -320,26 +320,6 @@ char *gitdirname(char *);
320320
#define PATH_MAX 4096
321321
#endif
322322

323-
#ifndef PRIuMAX
324-
#define PRIuMAX "llu"
325-
#endif
326-
327-
#ifndef SCNuMAX
328-
#define SCNuMAX PRIuMAX
329-
#endif
330-
331-
#ifndef PRIu32
332-
#define PRIu32 "u"
333-
#endif
334-
335-
#ifndef PRIx32
336-
#define PRIx32 "x"
337-
#endif
338-
339-
#ifndef PRIo32
340-
#define PRIo32 "o"
341-
#endif
342-
343323
typedef uintmax_t timestamp_t;
344324
#define PRItime PRIuMAX
345325
#define parse_timestamp strtoumax

0 commit comments

Comments
 (0)