Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/gtk/Makefile b/gtk/Makefile
- index b4317cc..bce88a9 100644
- --- a/gtk/Makefile
- +++ b/gtk/Makefile
- @@ -3,7 +3,7 @@ include $(GOROOT)/src/Make.$(GOARCH)
- TARG = gtk
- CGOFILES = gtk.go
- -CGO_CFLAGS = `pkg-config --cflags gtk+-2.0`
- +CGO_CFLAGS = `pkg-config --cflags gtk+-2.0` -DHACK_GLIST
- CGO_LDFLAGS = `pkg-config --libs gtk+-2.0`
- CGO_DEPS=
- #CGO_LDFLAGS = `pkg-config --libs gtk+-2.0` _cgo_export.o
- diff --git a/gtk/gtk.go b/gtk/gtk.go
- index 32e18ce..0aa3543 100644
- --- a/gtk/gtk.go
- +++ b/gtk/gtk.go
- @@ -4,6 +4,10 @@ package gtk
- #ifndef uintptr
- #define uintptr unsigned int*
- #endif
- +#if HACK_GLIST
- +#define __G_LIST_H__
- +typedef void* GList;
- +#endif
- #include <gtk/gtk.h>
- #include <unistd.h>
- #include <stdlib.h>
Add Comment
Please, Sign In to add comment