diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dacf5af..dc0529a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -217,7 +217,6 @@ jobs: ./gradlew build build-cosmopolitan: - name: cosmopolitan runs-on: ubuntu-latest timeout-minutes: 10 @@ -226,6 +225,7 @@ jobs: - name: Build αcτµαlly pδrταblε εxεcµταblε run: | cd platforms/cosmopolitan + gcc -v ./build.sh - name: Test WebAssembly spec run: | diff --git a/source/m3_api_wasi.c b/source/m3_api_wasi.c index ea83d1a..62cf195 100644 --- a/source/m3_api_wasi.c +++ b/source/m3_api_wasi.c @@ -92,7 +92,7 @@ Preopen preopen[PREOPEN_CNT] = { # define APE_SWITCH_END {} # define APE_CASE_RET(e1,e2) if (errnum == e1) return e2; else #else -# define APE_SWITCH switch (errnum) { +# define APE_SWITCH_BEG switch (errnum) { # define APE_SWITCH_END } # define APE_CASE_RET(e1,e2) case e1: return e2; break; #endif