Skip to content

Commit c29b64e

Browse files
committed
clipboard: workaround printing of structs containing &C.Display pointers with gcc
1 parent a1c5c6c commit c29b64e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vlib/clipboard/x11/clipboard.c.v

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ $if freebsd {
1616

1717
#include <X11/Xlib.h> # Please install a package with the X11 development headers, for example: `apt-get install libx11-dev`
1818
// X11
19+
1920
@[typedef]
20-
pub struct C.Display {
21+
pub struct C.Display {}
22+
23+
fn (d &C.Display) str() string {
24+
return 'C.Display{}'
2125
}
2226

2327
type Window = u64

0 commit comments

Comments
 (0)