Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
9 changes: 9 additions & 0 deletions native/buzz_shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
#include <stdlib.h>
#include <string.h>

/* 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 <windows.h> a no-op. */
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef interface
#endif

#include "lexbor_single.h"
#include "buzz_shim.h"

Expand Down
Loading