diff options
author | Ludovic Courtès <ludo@gnu.org> | 2008-06-02 21:34:57 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2008-06-02 21:34:57 +0200 |
commit | fcbc08686c3341dd2dd5b429e13f41fc08e29db4 (patch) | |
tree | ea69ba72a89dc5de623865cab329a9241733fa78 | |
parent | e36280cb28f1041166ceb0941639c03e5c68fa70 (diff) | |
download | guile-fcbc08686c3341dd2dd5b429e13f41fc08e29db4.tar.gz |
Support systems whose <inttypes.h> doesn't define `PRIiMAX'.
-rw-r--r-- | test-suite/ChangeLog | 6 | ||||
-rw-r--r-- | test-suite/standalone/test-conversion.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/test-suite/ChangeLog b/test-suite/ChangeLog index dca61413d..9b4cdd643 100644 --- a/test-suite/ChangeLog +++ b/test-suite/ChangeLog @@ -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> * standalone/test-gh.c (string_equal): Use `scm_c_string_length ()' diff --git a/test-suite/standalone/test-conversion.c b/test-suite/standalone/test-conversion.c index b8dfab8ea..92835f244 100644 --- a/test-suite/standalone/test-conversion.c +++ b/test-suite/standalone/test-conversion.c @@ -27,7 +27,9 @@ #ifdef HAVE_INTTYPES_H # include <inttypes.h> -#elif (!defined PRIiMAX) +#endif + +#ifndef PRIiMAX # if (defined SIZEOF_LONG_LONG) && (SIZEOF_LONG_LONG >= 8) # define PRIiMAX "lli" # define PRIuMAX "llu" |