1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 11:50:28 +02:00

Support systems whose <inttypes.h> doesn't define `PRIiMAX'.

This commit is contained in:
Ludovic Courtès 2008-06-02 21:34:57 +02:00
parent e36280cb28
commit fcbc08686c
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-06-02 Ludovic Courtès <ludo@gnu.org>
* standalone/test-conversion.c: Support systems whose
<inttypes.h> doesn't define `PRIiMAX'. Reported by Peter
O'Gorman <pogma@thewrittenword.com>.
2008-05-31 Ludovic Courtès <ludo@gnu.org> 2008-05-31 Ludovic Courtès <ludo@gnu.org>
* standalone/test-gh.c (string_equal): Use `scm_c_string_length ()' * standalone/test-gh.c (string_equal): Use `scm_c_string_length ()'

View file

@ -27,7 +27,9 @@
#ifdef HAVE_INTTYPES_H #ifdef HAVE_INTTYPES_H
# include <inttypes.h> # include <inttypes.h>
#elif (!defined PRIiMAX) #endif
#ifndef PRIiMAX
# if (defined SIZEOF_LONG_LONG) && (SIZEOF_LONG_LONG >= 8) # if (defined SIZEOF_LONG_LONG) && (SIZEOF_LONG_LONG >= 8)
# define PRIiMAX "lli" # define PRIiMAX "lli"
# define PRIuMAX "llu" # define PRIuMAX "llu"