summaryrefslogtreecommitdiffstats
path: root/byterun/mlvalues.h
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1998-06-23 13:39:54 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1998-06-23 13:39:54 +0000
commit840152fd2d0a26db041dc5e645f20eb67b157ae1 (patch)
tree23a8e042f026cb4d2b30f48fa9df495f46ee0d86 /byterun/mlvalues.h
parent19d79cd6aca36ea74e50f3c608a188d81c79f6b3 (diff)
Debut portage Cray T3E
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1992 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/mlvalues.h')
-rw-r--r--byterun/mlvalues.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/byterun/mlvalues.h b/byterun/mlvalues.h
index f862a4c4a..3f0c6d7b7 100644
--- a/byterun/mlvalues.h
+++ b/byterun/mlvalues.h
@@ -55,8 +55,16 @@ typedef unsigned int tag_t; /* Actually, an unsigned char */
typedef unsigned long color_t;
typedef unsigned long mark_t;
-typedef int int32; /* Not portable, but checked by autoconf. */
-typedef unsigned int uint32; /* Seems like a reasonable assumption anyway. */
+#if SIZEOF_INT == 4
+typedef int int32;
+typedef unsigned int uint32;
+#elif SIZEOF_LONG == 4
+typedef long int32;
+typedef unsigned long uint32;
+#elif SIZEOF_SHORT == 4
+typedef short int32;
+typedef unsigned short uint32;
+#endif
/* Longs vs blocks. */
#define Is_long(x) (((x) & 1) != 0)