diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2010-12-12 16:07:11 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2010-12-12 16:07:11 +0200 |
commit | ce56f63c41ee210e6308090eb6d49221fdf67d6c (patch) | |
tree | 2bdddb55755d47f79abc9f5bfc7c12a871f01993 /src/common/sysdefs.h | |
parent | DOS-like: Treat \ and : as directory separators in addition to /. (diff) | |
download | xz-ce56f63c41ee210e6308090eb6d49221fdf67d6c.tar.xz |
Add missing PRIx32 and PRIx64 compatibility definitions.
This fixes portability to systems that lack C99 inttypes.h.
Thanks to Juan Manuel Guerrero.
Diffstat (limited to '')
-rw-r--r-- | src/common/sysdefs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/sysdefs.h b/src/common/sysdefs.h index c74c6212..51f06cf0 100644 --- a/src/common/sysdefs.h +++ b/src/common/sysdefs.h @@ -65,6 +65,9 @@ #ifndef PRIu32 # define PRIu32 "u" #endif +#ifndef PRIx32 +# define PRIx32 "x" +#endif #ifndef PRIX32 # define PRIX32 "X" #endif @@ -76,6 +79,9 @@ # ifndef PRIu64 # define PRIu64 "llu" # endif +# ifndef PRIx64 +# define PRIx64 "llx" +# endif # ifndef PRIX64 # define PRIX64 "llX" # endif @@ -86,6 +92,9 @@ # ifndef PRIu64 # define PRIu64 "lu" # endif +# ifndef PRIx64 +# define PRIx64 "lx" +# endif # ifndef PRIX64 # define PRIX64 "lX" # endif |