mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
clipboard: workaround printing of structs containing &C.Display pointers with gcc
This commit is contained in:
parent
a1c5c6c8f2
commit
c29b64e04e
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue