clipboard: workaround printing of structs containing &C.Display pointers with gcc

This commit is contained in:
Delyan Angelov 2024-03-13 18:49:16 +02:00
parent a1c5c6c8f2
commit c29b64e04e
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -16,8 +16,12 @@ $if freebsd {
#include <X11/Xlib.h> # Please install a package with the X11 development headers, for example: `apt-get install libx11-dev`
// X11
@[typedef]
pub struct C.Display {
pub struct C.Display {}
fn (d &C.Display) str() string {
return 'C.Display{}'
}
type Window = u64