summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-12-05 12:52:47 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-12-05 12:52:47 -0800
commite547e5a89e3641bae02e762bcb0062951bb698e5 (patch)
treeb2f220d282063069761a0d1fd1c96513c28a4af0
parentMerge branch 'mg/submodule-status-from-a-subdirectory' (diff)
parentgit-compat-util.h: drop the `PRIuMAX` and other fallback definitions (diff)
downloadtgif-e547e5a89e3641bae02e762bcb0062951bb698e5.tar.xz
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
-rw-r--r--git-compat-util.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 607dca7534..ddb7fca8d6 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -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