diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8778a7d..79b8f42 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,10 +17,10 @@ jobs: runs-on: ${{ matrix.platform }} steps: - name: Install LLVM and Clang # required for bindgen to work, see https://github.com/rust-lang/rust-bindgen/issues/1797 - uses: KyleMayes/install-llvm-action@v2 + uses: KyleMayes/install-llvm-action@v2.0.8 if: matrix.platform == 'windows-latest' with: - version: 20.1.8 + version: 21.1.3 directory: ${{ runner.temp }}/llvm - name: Set LIBCLANG_PATH run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV diff --git a/src/lib.rs b/src/lib.rs index 88281f2..8d8080a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -70,7 +70,7 @@ mod bindings { pub type c_ushort = ::std::os::raw::c_ushort; pub type c_uint = ::std::os::raw::c_uint; pub type c_int = ::std::os::raw::c_int; - pub type c_ulong = ::std::os::raw::c_ulong; + pub type c_ulong = usize; } include!(concat!(env!("OUT_DIR"), "/bindings.rs")); }