From 494ab7773515ea67bf365707852bbb4074f866ba Mon Sep 17 00:00:00 2001 From: Arnaud Spiwack Date: Fri, 13 Mar 2015 15:43:12 +0100 Subject: Fix compilation with forthcoming Ocaml version 4.03. Backported from a patch for v8.4 by Pierre Chambart. Part of the commit has been rendered obsolete by code reorganisation, leaving: * OCaml runtime header files used to declare the int32, uint32, int64 and uint64 type. That got removed, and uses of those types should be replaced by the standard ones: uint32_t, int32_t, int64_t, uint64_t. Those are defined in stdint.h. --- kernel/byterun/coq_fix_code.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'kernel/byterun/coq_fix_code.c') diff --git a/kernel/byterun/coq_fix_code.c b/kernel/byterun/coq_fix_code.c index 3fded66385..52dc49bf8e 100644 --- a/kernel/byterun/coq_fix_code.c +++ b/kernel/byterun/coq_fix_code.c @@ -13,6 +13,7 @@ #include #include +#include #include #include #include @@ -146,7 +147,7 @@ value coq_tcode_of_code (value code, value size) { }; *q++ = VALINSTR(instr); if (instr == SWITCH) { - uint32 i, sizes, const_size, block_size; + uint32_t i, sizes, const_size, block_size; COPY32(q,p); p++; sizes=*q++; const_size = sizes & 0xFFFF; @@ -154,13 +155,13 @@ value coq_tcode_of_code (value code, value size) { sizes = const_size + block_size; for(i=0; i