Skip to content

Commit

Permalink
clipboard: workaround printing of structs containing &C.Display point…
Browse files Browse the repository at this point in the history
…ers with gcc
  • Loading branch information
spytheman committed Mar 13, 2024
1 parent a1c5c6c commit c29b64e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vlib/clipboard/x11/clipboard.c.v
Expand Up @@ -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
Expand Down

0 comments on commit c29b64e

Please sign in to comment.