git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Provide fallback definitions of PRIu32 and PRIx32

From
Johannes Sixt <johannes.sixt@telecom.at>
Date
Jul 9, 2008, 20:38 UTC
Message-ID
<200807092238.14656.johannes.sixt@telecom.at>

Since 6e1c23442 we make use of these C99 constructs, but this commit did not provide fallbacks for non-C99 systems.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
---
 git-compat-util.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/git-compat-util.h b/git-compat-util.h
index 545df59..8c7e114 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -110,6 +110,14 @@
 #define PRIuMAX "llu"
 #endif
 
+#ifndef PRIu32
+#define PRIu32 "u"
+#endif
+
+#ifndef PRIx32
+#define PRIx32 "x"
+#endif
+
 #ifndef PATH_SEP
 #define PATH_SEP ':'
 #endif
-- 
1.5.6.1.216.g8c89b
Message 1 of 1 in “Provide fallback definitions of PRIu32 and PRIx32”
  1. Provide fallback definitions of PRIu32 and PRIx32Johannes Sixt, Jul 9, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.