Skip to content

Commit

Permalink
Version v0.16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
d-kalinichenko committed Jul 21, 2023
1 parent afb90f9 commit a38618a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion base.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "v0.16.1"
version: "v0.16.2"
maintainer: "Jane Street developers"
authors: ["Jane Street Group, LLC"]
homepage: "https://github.com/janestreet/base"
Expand Down
10 changes: 0 additions & 10 deletions src/int_math_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,7 @@ CAMLprim value Base_int_math_nativeint_ctz(value v) {
return Val_int(Base_int_math_nativeint_ctz_unboxed(Nativeint_val(v)));
}

// Weak symbol declarations aren't supported on Windows.
// [caml_csel_value] is tagged as weak here for compatibility with
// [ocaml_intrinsics], which doesn't support Windows anyway.
//
// #ifdef __ELF__ excludes macOS too, but [ocaml_intrinsics] doesn't support
// macOS either. On macOS, the right attribute is [weak_import].
#ifdef __ELF__
CAMLprim value __attribute__((weak))
#else
CAMLprim value
#endif
caml_csel_value(value v_cond, value v_true, value v_false) {
return (Bool_val(v_cond) ? v_true : v_false);
}

0 comments on commit a38618a

Please sign in to comment.