From 4760ad7c5a4f9a6db8c7adb5af8c10a27badb199 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 13 Dec 2015 02:24:43 -0500 Subject: Added OS X building. Go 1.5 required because of https://github.com/golang/go/issues/9411 which affects this. Also set up proper multithreading on OS X. Currently crashes due to similar issue I've had with libui. --- link_unix.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'link_unix.go') diff --git a/link_unix.go b/link_unix.go index 597dc44..e06cb12 100644 --- a/link_unix.go +++ b/link_unix.go @@ -7,3 +7,7 @@ package ui // #cgo LDFLAGS: -L${SRCDIR} -lui -Wl,-rpath=$ORIGIN import "C" + +func ensureMainThread() { + // do nothing; GTK+ doesn't care which thread we're on so long as we don't change it after starting +} -- cgit v1.2.3