From 826494260245464aec647f042a0f2bc717673031 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Tue, 26 May 2020 18:54:26 +0200 Subject: [PATCH] Combined two Allegro related code units. --- cmd/tins2020/tins2020_allegro.go | 3 +++ cmd/tins2020/tins2020_windows_allegro.go | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 cmd/tins2020/tins2020_windows_allegro.go diff --git a/cmd/tins2020/tins2020_allegro.go b/cmd/tins2020/tins2020_allegro.go index c95ac49..41eb55c 100644 --- a/cmd/tins2020/tins2020_allegro.go +++ b/cmd/tins2020/tins2020_allegro.go @@ -8,6 +8,9 @@ import ( _ "opslag.de/schobers/zntg/allg5ui" // rendering backend ) +// #cgo windows,allegro LDFLAGS: -Wl,-subsystem,windows +import "C" + func init() { log.Println("Using Allegro5 rendering backend") } diff --git a/cmd/tins2020/tins2020_windows_allegro.go b/cmd/tins2020/tins2020_windows_allegro.go deleted file mode 100644 index 66bc469..0000000 --- a/cmd/tins2020/tins2020_windows_allegro.go +++ /dev/null @@ -1,6 +0,0 @@ -// +build windows,allegro - -package main - -// #cgo LDFLAGS: -Wl,-subsystem,windows -import "C"