diff --git a/libui_windows_386.res.o b/libui_windows_386.res.o deleted file mode 100644 index 4b03f64..0000000 Binary files a/libui_windows_386.res.o and /dev/null differ diff --git a/libui_windows_amd64.res.o b/libui_windows_amd64.res.o deleted file mode 100644 index ddcddbf..0000000 Binary files a/libui_windows_amd64.res.o and /dev/null differ diff --git a/link_windows_386.go b/link_windows_386.go index 776b481..d617a20 100644 --- a/link_windows_386.go +++ b/link_windows_386.go @@ -2,7 +2,7 @@ package ui -// #cgo LDFLAGS: ${SRCDIR}/libui_windows_386.a ${SRCDIR}/libui_windows_386.res.o +// #cgo LDFLAGS: ${SRCDIR}/libui_windows_386.a // /* note the order; also note the lack of uuid */ // #cgo LDFLAGS: -luser32 -lkernel32 -lusp10 -lgdi32 -lcomctl32 -luxtheme -lmsimg32 -lcomdlg32 -ld2d1 -ldwrite -lole32 -loleaut32 -loleacc -static -static-libgcc -static-libstdc++ import "C" diff --git a/link_windows_amd64.go b/link_windows_amd64.go index ad2d1a2..73c94af 100644 --- a/link_windows_amd64.go +++ b/link_windows_amd64.go @@ -2,7 +2,7 @@ package ui -// #cgo LDFLAGS: ${SRCDIR}/libui_windows_amd64.a ${SRCDIR}/libui_windows_amd64.res.o +// #cgo LDFLAGS: ${SRCDIR}/libui_windows_amd64.a // /* note the order; also note the lack of uuid */ // #cgo LDFLAGS: -luser32 -lkernel32 -lusp10 -lgdi32 -lcomctl32 -luxtheme -lmsimg32 -lcomdlg32 -ld2d1 -ldwrite -lole32 -loleaut32 -loleacc -static -static-libgcc -static-libstdc++ import "C" diff --git a/main.go b/main.go index b908e0a..dd1443a 100644 --- a/main.go +++ b/main.go @@ -27,6 +27,7 @@ import "C" // make sure main() runs on the first thread created by the OS // if main() calls Main(), things will just work on macOS, where the first thread created by the OS is the only thread allowed to be the main GUI thread // we might as well lock the OS thread for the other platforms here too (though on those it doesn't matter *which* thread we lock to) +// TODO describe the source of this trick func init() { runtime.LockOSThread() } diff --git a/static.rc b/static.rc deleted file mode 100644 index ca23375..0000000 --- a/static.rc +++ /dev/null @@ -1,3 +0,0 @@ -/* 5 june 2016 */ -#pragma code_page(65001) -1 24 "static.manifest" diff --git a/static_windows_386.syso b/static_windows_386.syso deleted file mode 100644 index 46c6ccc..0000000 Binary files a/static_windows_386.syso and /dev/null differ diff --git a/static_windows_amd64.syso b/static_windows_amd64.syso deleted file mode 100644 index eb56b3b..0000000 Binary files a/static_windows_amd64.syso and /dev/null differ