diff options
| author | Xavier Leroy <xavier.leroy@inria.fr> | 2015-11-19 10:45:54 +0100 |
|---|---|---|
| committer | Xavier Leroy <xavier.leroy@inria.fr> | 2015-11-19 10:45:54 +0100 |
| commit | bf2033e127aba709b465ac5f70ea05cd29d87876 (patch) | |
| tree | dc654730e88173de732c83311ca03526488dbb0f | |
| parent | 0c5e862a3e377d841d9e3dd222bcd350651b644f (diff) | |
| download | ocaml-bf2033e127aba709b465ac5f70ea05cd29d87876.tar.gz | |
If <stdint.h> not available (e.g. MSVC), define {u,}int16_t types ourselves.
| -rw-r--r-- | byterun/caml/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/byterun/caml/config.h b/byterun/caml/config.h index 63f0edd77c..490f38ac2e 100644 --- a/byterun/caml/config.h +++ b/byterun/caml/config.h @@ -70,6 +70,12 @@ typedef ARCH_INT32_TYPE int32_t; typedef ARCH_UINT32_TYPE uint32_t; typedef ARCH_INT64_TYPE int64_t; typedef ARCH_UINT64_TYPE uint64_t; +#if SIZEOF_SHORT == 2 +typedef short int16_t; +typedef unsigned short uint16_t; +#else +#error "No 16-bit integer type available" +#endif #endif #if SIZEOF_PTR == SIZEOF_LONG |
