From 1e83cbc202088e5e512823161d296f920a48b89e Mon Sep 17 00:00:00 2001 From: Tim McGilchrist Date: Sun, 28 Apr 2024 00:56:04 +1000 Subject: [PATCH] Implicit declaration of memcpy (#8) * Implicit declaration of memcpy ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] * Update OCaml 5.1 version and add macos ARM64 builds --- .github/workflows/default.yml | 5 +++-- lib/multicont_stubs.c | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 660e523..7245ead 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -16,15 +16,16 @@ jobs: matrix: os: - ubuntu-22.04 + - macos-14 ocaml-compiler: - - 5.1.0 + - 5.1.1 - ocaml-variants.5.2.0+trunk runs-on: ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Use OCaml ${{ matrix.ocaml-compiler }} uses: ocaml/setup-ocaml@v2 diff --git a/lib/multicont_stubs.c b/lib/multicont_stubs.c index 5fb59c4..59cb7dd 100644 --- a/lib/multicont_stubs.c +++ b/lib/multicont_stubs.c @@ -8,6 +8,8 @@ #include // provides [CAMLnoalloc] macro #include // provides OCaml versioning macros +#include + #ifdef NATIVE_CODE #include #include