Skip to content

Commit 79a7aff

Browse files
committed
Allow library to be used on Windows systems
1 parent 6912b33 commit 79a7aff

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "XCB"
22
uuid = "16167f82-ea26-5cba-b1de-ed6fd5e30a10"
3-
version = "0.7.1"
3+
version = "0.7.2"
44

55
[deps]
66
BitMasks = "a3e06817-fd65-4797-8291-16f435bc2529"

src/LibXCB.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
module LibXCB
22

33
using BitMasks: @bitmask
4-
using Xorg_libxcb_jll: libxcb, libxcb_xkb
5-
using Xorg_xcb_util_jll: libxcb_util
4+
using Xorg_libxcb_jll: Xorg_libxcb_jll
5+
@static if Xorg_libxcb_jll.is_available()
6+
using Xorg_libxcb_jll: libxcb, libxcb_xkb
7+
using Xorg_xcb_util_jll: libxcb_util
8+
end
69

710
const IS_LIBC_MUSL = occursin("musl", Base.BUILD_TRIPLET)
811

0 commit comments

Comments
 (0)