summaryrefslogtreecommitdiff
path: root/libguile/gen-scmconfig.h.in
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-11-24 23:12:03 +0100
committerLudovic Courtès <ludo@gnu.org>2009-11-24 23:12:03 +0100
commit114bc68ac97d47b2e5635de98b111b47de85ed92 (patch)
treef024bad255951ba038c2dbc9cdc20ebdde8d784c /libguile/gen-scmconfig.h.in
parent45f1c6674995e14467f96f8bebc9da67a4d20132 (diff)
downloadguile-114bc68ac97d47b2e5635de98b111b47de85ed92.tar.gz
Don't rely on `HAVE_' macros in public header "tags.h".
* configure.ac: Check for `intptr_t' and `uintptr_t'. Substitute `SCM_I_GSC_T_INTPTR' and `SCM_I_GSC_T_UINPTR'. * libguile/__scm.h (SCM_T_UINTPTR_MAX, SCM_T_INTPTR_MIN, SCM_T_INTPTR_MAX): New macros. * libguile/_scm.h (SIZEOF_SCM_T_BITS): New macro. * libguile/gen-scmconfig.c (main): Produce typedefs for `scm_t_intptr' and `scm_t_uintptr'. * libguile/gen-scmconfig.h.in (SCM_I_GSC_T_INTPTR, SCM_I_GSC_T_UINPTR): New macros. * libguile/tags.h: Don't check for `HAVE_INTTYPES_H' and `HAVE_STDINT_H'; don't include <inttypes.h> nor <stdint.h>. (scm_t_signed_bits, scm_t_bits): Define unconditionally as aliases for `scm_t_intptr' and `scm_t_uintptr', respectively. (SCM_T_SIGNED_BITS_MAX, SCM_T_SIGNED_BITS_MIN, SCM_T_BITS_MAX): Likewise. (SIZEOF_SCM_T_BITS): Remove.
Diffstat (limited to 'libguile/gen-scmconfig.h.in')
-rw-r--r--libguile/gen-scmconfig.h.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/libguile/gen-scmconfig.h.in b/libguile/gen-scmconfig.h.in
index 770e08196..5d569f6ec 100644
--- a/libguile/gen-scmconfig.h.in
+++ b/libguile/gen-scmconfig.h.in
@@ -25,6 +25,8 @@
#define SCM_I_GSC_T_UINT64 @SCM_I_GSC_T_UINT64@
#define SCM_I_GSC_T_INTMAX @SCM_I_GSC_T_INTMAX@
#define SCM_I_GSC_T_UINTMAX @SCM_I_GSC_T_UINTMAX@
+#define SCM_I_GSC_T_INTPTR @SCM_I_GSC_T_INTPTR@
+#define SCM_I_GSC_T_UINTPTR @SCM_I_GSC_T_UINTPTR@
#define SCM_I_GSC_T_PTRDIFF @SCM_I_GSC_T_PTRDIFF@
#define SCM_I_GSC_USE_PTHREAD_THREADS @SCM_I_GSC_USE_PTHREAD_THREADS@
#define SCM_I_GSC_USE_NULL_THREADS @SCM_I_GSC_USE_NULL_THREADS@