Skip to content

Commit

Permalink
use @Chris00 fix to configurator instead of mine
Browse files Browse the repository at this point in the history
as seen in ocaml/dune#1726
  • Loading branch information
avsm committed Dec 31, 2018
1 parent 3ef5a52 commit 8f7efe9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/configure/gen_c_primitives.ml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ let includes = []
let () =
C.main ~name:"ctypes" (fun c ->
let import_int l =
match C.C_define.(import c ~prelude ~includes [l,Type.Uint]) with
match C.C_define.(import c ~prelude ~includes [l,Type.Int]) with
|[_,C.C_define.Value.Int i] -> i
|_ -> failwith ("unable to find integer definition for " ^ l) in
let import_string l =
Expand Down
2 changes: 1 addition & 1 deletion src/ctypes-foreign-base/config/gen_libffi_abi.ml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ let find_defined_symbols c c_flags =
else acc) [] symbols

let get_symbol c c_flags symbol =
match CD.(import c ~includes ~c_flags [symbol,Type.Uint]) with
match CD.(import c ~includes ~c_flags [symbol,Type.Int]) with
|[_,CD.Value.Int i] -> i
|_ -> failwith (Printf.sprintf "unexpected error parsing ffi.h: is %s not an integer?" symbol)

Expand Down

0 comments on commit 8f7efe9

Please sign in to comment.