Guest User

Untitled

a guest
May 27th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. diff --git a/gtk/Makefile b/gtk/Makefile
  2. index b4317cc..bce88a9 100644
  3. --- a/gtk/Makefile
  4. +++ b/gtk/Makefile
  5. @@ -3,7 +3,7 @@ include $(GOROOT)/src/Make.$(GOARCH)
  6. TARG = gtk
  7. CGOFILES = gtk.go
  8.  
  9. -CGO_CFLAGS = `pkg-config --cflags gtk+-2.0`
  10. +CGO_CFLAGS = `pkg-config --cflags gtk+-2.0` -DHACK_GLIST
  11. CGO_LDFLAGS = `pkg-config --libs gtk+-2.0`
  12. CGO_DEPS=
  13. #CGO_LDFLAGS = `pkg-config --libs gtk+-2.0` _cgo_export.o
  14. diff --git a/gtk/gtk.go b/gtk/gtk.go
  15. index 32e18ce..0aa3543 100644
  16. --- a/gtk/gtk.go
  17. +++ b/gtk/gtk.go
  18. @@ -4,6 +4,10 @@ package gtk
  19. #ifndef uintptr
  20. #define uintptr unsigned int*
  21. #endif
  22. +#if HACK_GLIST
  23. +#define __G_LIST_H__
  24. +typedef void* GList;
  25. +#endif
  26. #include <gtk/gtk.h>
  27. #include <unistd.h>
  28. #include <stdlib.h>
Add Comment
Please, Sign In to add comment