examples/flappy: add GoMain when Windows+Cgo

This is a hack to compile the example with -buildmode=c-archive (.a).

Updates #2084
This commit is contained in:
Hajime Hoshi 2022-05-02 22:46:24 +09:00
parent cf914bfe00
commit 2c4ac5625b

View File

@ -12,8 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build example && ebitencbackend
// +build example,ebitencbackend
//go:build example && (ebitencbackend || (windows && cgo))
// +build example
// +build ebitencbackend windows,cgo
// This file is for some special environments using `ebitencbackend`.
// You usually don't have to care about this file.