diff options
author | Stephane Glondu <steph@glondu.net> | 2023-09-30 21:05:30 +0200 |
---|---|---|
committer | Stephane Glondu <steph@glondu.net> | 2023-09-30 21:05:30 +0200 |
commit | 96fd0167728e25bff120196a9275e85a96d0f8b4 (patch) | |
tree | 17945bcf7458e563aca44855d44a58b362bbbeba | |
parent | 304bd2186801882435b57492356fa5c82ce59cd1 (diff) |
New upstream version 0.16.2
-rw-r--r-- | base.opam | 2 | ||||
-rw-r--r-- | src/int_math_stubs.c | 10 |
2 files changed, 1 insertions, 11 deletions
@@ -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" diff --git a/src/int_math_stubs.c b/src/int_math_stubs.c index 6767f28..64da39d 100644 --- a/src/int_math_stubs.c +++ b/src/int_math_stubs.c @@ -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); } |