diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 356b2cc..0da303e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,11 +83,13 @@ jobs: with: msystem: UCRT64 path-type: inherit + # lz4: jolt build links it statically once a static native is in play install: >- curl unzip zip perl mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-ntldd mingw-w64-ucrt-x86_64-zlib + mingw-w64-ucrt-x86_64-lz4 - name: Install jolt's libraries if: runner.os == 'Linux' diff --git a/native/buzz_shim.c b/native/buzz_shim.c index 3fa2149..d59c9c5 100644 --- a/native/buzz_shim.c +++ b/native/buzz_shim.c @@ -4,6 +4,15 @@ #include #include +/* windows.h pulls in COM's `#define interface struct`, which breaks lexbor's + * parameters named interface. Include it first, lean, and drop the macro; + * the include guard makes lexbor's own #include a no-op. */ +#ifdef _WIN32 +#define WIN32_LEAN_AND_MEAN +#include +#undef interface +#endif + #include "lexbor_single.h" #include "buzz_shim.h"