mirror of
https://github.com/vlang/v.git
synced 2025-09-11 16:36:20 -04:00
clipboard: workaround printing of structs containing &C.Display pointers with gcc
This commit is contained in:
parent
a1c5c6c8f2
commit
c29b64e04e
@ -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`
|
#include <X11/Xlib.h> # Please install a package with the X11 development headers, for example: `apt-get install libx11-dev`
|
||||||
// X11
|
// X11
|
||||||
|
|
||||||
@[typedef]
|
@[typedef]
|
||||||
pub struct C.Display {
|
pub struct C.Display {}
|
||||||
|
|
||||||
|
fn (d &C.Display) str() string {
|
||||||
|
return 'C.Display{}'
|
||||||
}
|
}
|
||||||
|
|
||||||
type Window = u64
|
type Window = u64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user