Include <stdint.h> when we have it.
authorMarius Vollmer <mvo@zagadka.de>
Thu, 14 Jun 2001 17:39:30 +0000 (17:39 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Thu, 14 Jun 2001 17:39:30 +0000 (17:39 +0000)
(scm_bits_t): Changed to be a unsigned type.  Use uintptr_t when
available.  Else use "unsigned long".
(scm_signed_bits_t): New.

libguile/tags.h

index 3de11fe..4f43dea 100644 (file)
  ** It is here that tag bits are assigned for various purposes.
  **/
 
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
 \f
 
 /* In the beginning was the Word:
  */
-typedef long scm_bits_t;
+#ifdef HAVE_UINTPTR_T
+typedef uintptr_t scm_bits_t;
+typedef intptr_t scm_signed_bits_t;
+#else
+typedef unsigned long scm_bits_t;
+typedef signed long scm_signed_bits_t;
+#endif
 
 /* But as external interface, we use SCM, which may, according to the desired
  * level of type checking, be defined in several ways: