summaryrefslogtreecommitdiff
path: root/libguile/gen-scmconfig.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2018-06-20 14:55:49 +0200
committerAndy Wingo <wingo@pobox.com>2018-06-20 15:01:13 +0200
commit2eb8fa1751dcb1b57bc607c6df61f9d363dff8c3 (patch)
treeaa58d31922c878effeb919706c1e15beacf3fd01 /libguile/gen-scmconfig.c
parente605b518ee472d18e3bb3bcfb8840abfa8486372 (diff)
downloadguile-2eb8fa1751dcb1b57bc607c6df61f9d363dff8c3.tar.gz
Use stdint.h limit macros
* libguile/__scm.h: Include <stdint.h>, now that we rely on C99. (SCM_T_UINT8_MAX, SCM_T_INT8_MIN, SCM_T_INT8_MAX, SCM_T_UINT16_MAX) (SCM_T_INT16_MIN, SCM_T_INT16_MAX, SCM_T_UINT32_MAX, SCM_T_INT32_MIN) (SCM_T_INT32_MAX, SCM_T_UINT64_MAX, SCM_T_INT64_MIN, SCM_T_INT64_MAX) (SCM_T_UINTMAX_MAX, SCM_T_INTMAX_MIN, SCM_T_INTMAX_MAX) (SCM_T_UINTPTR_MAX, SCM_T_INTPTR_MIN, SCM_T_INTPTR_MAX): Define in terms of equivalent stdint.h definitions. * libguile/gen-scmconfig.c: * libguile/instructions.c: * libguile/numbers.c: * libguile/random.c: * libguile/tags.h: * test-suite/standalone/test-conversion.c: Adapt to use C99 names.
Diffstat (limited to 'libguile/gen-scmconfig.c')
-rw-r--r--libguile/gen-scmconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/gen-scmconfig.c b/libguile/gen-scmconfig.c
index 1d4d31ab7..4ac90f0a5 100644
--- a/libguile/gen-scmconfig.c
+++ b/libguile/gen-scmconfig.c
@@ -375,8 +375,8 @@ main (int argc, char *argv[])
#if defined GUILE_USE_64_CALLS && defined HAVE_STAT64
pf ("typedef scm_t_int64 scm_t_off;\n");
- pf ("#define SCM_T_OFF_MAX SCM_T_INT64_MAX\n");
- pf ("#define SCM_T_OFF_MIN SCM_T_INT64_MIN\n");
+ pf ("#define SCM_T_OFF_MAX INT64_MAX\n");
+ pf ("#define SCM_T_OFF_MIN INT64_MIN\n");
#elif SIZEOF_OFF_T == SIZEOF_INT
pf ("typedef int scm_t_off;\n");
pf ("#define SCM_T_OFF_MAX INT_MAX\n");