summaryrefslogtreecommitdiff
path: root/libguile/__scm.h
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/__scm.h')
-rw-r--r--libguile/__scm.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/libguile/__scm.h b/libguile/__scm.h
index 9e0fea279..753684edc 100644
--- a/libguile/__scm.h
+++ b/libguile/__scm.h
@@ -211,8 +211,11 @@
/* Some auto-generated .h files contain unused prototypes
* that need these typedefs.
*/
+
+#if (SCM_DEBUG_DEPRECATED == 0)
typedef long long long_long;
typedef unsigned long long ulong_long;
+#endif
#endif /* HAVE_LONG_LONGS */
@@ -252,6 +255,8 @@ typedef unsigned long long ulong_long;
# define SCM_LONG_BIT (SCM_CHAR_BIT * sizeof (long) / sizeof (char))
#endif
+#define SCM_BITS_LENGTH (SCM_CHAR_BIT * SCM_SIZEOF_BITS_T)
+
#ifdef UCHAR_MAX
# define SCM_CHAR_CODE_LIMIT (UCHAR_MAX + 1L)
#else
@@ -262,18 +267,19 @@ typedef unsigned long long ulong_long;
#ifdef STDC_HEADERS
# include <stdlib.h>
-# ifdef AMIGA
+# if HAVE_SYS_TYPES_H
+# include <sys/types.h>
+# endif
+# if HAVE_SYS_STDTYPES_H
+# include <sys/stdtypes.h>
+# endif
# include <stddef.h>
-# endif /* def AMIGA */
-# define scm_sizet size_t
-#else
-# ifdef _SIZE_T
-# define scm_sizet size_t
-# else
-# define scm_sizet unsigned int
-# endif /* def _SIZE_T */
#endif /* def STDC_HEADERS */
+#if (SCM_DEBUG_DEPRECATED == 0)
+# define scm_sizet size_t
+#endif
+
#include "libguile/tags.h"