diff --git a/app/app.go b/app/app.go index 84a7ace..df5368f 100644 --- a/app/app.go +++ b/app/app.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build linux darwin + package app import ( diff --git a/font/font.go b/font/font.go index 2c27980..ed1cf3e 100644 --- a/font/font.go +++ b/font/font.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build linux darwin + // Package font provides platform independent access to system fonts. package font diff --git a/gl/gendebug.go b/gl/gendebug.go index 10f378f..dcfd8ac 100644 --- a/gl/gendebug.go +++ b/gl/gendebug.go @@ -11,8 +11,8 @@ package main import ( "bytes" - "fmt" "flag" + "fmt" "go/ast" "go/format" "go/parser" @@ -221,6 +221,7 @@ const preamble = `// Copyright 2014 The Go Authors. All rights reserved. // Generated from gl.go using go generate. DO NOT EDIT. // See doc.go for details. +// +build linux darwin // +build gldebug package gl diff --git a/gl/gl.go b/gl/gl.go index 704d1fc..697825d 100644 --- a/gl/gl.go +++ b/gl/gl.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build linux darwin // +build !gldebug package gl diff --git a/gl/gldebug.go b/gl/gldebug.go index 505872b..c5b5f2d 100644 --- a/gl/gldebug.go +++ b/gl/gldebug.go @@ -5,6 +5,7 @@ // Generated from gl.go using go generate. DO NOT EDIT. // See doc.go for details. +// +build linux darwin // +build gldebug package gl diff --git a/gl/types_common.go b/gl/types_common.go index 878626f..facf9c7 100644 --- a/gl/types_common.go +++ b/gl/types_common.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build linux darwin + package gl // This file contains GL Types and their methods that are independent of the diff --git a/gl/types_debug.go b/gl/types_debug.go index 2f0eb2f..f9c5183 100644 --- a/gl/types_debug.go +++ b/gl/types_debug.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build linux darwin // +build gldebug package gl diff --git a/gl/types_prod.go b/gl/types_prod.go index cb3207b..34def2a 100644 --- a/gl/types_prod.go +++ b/gl/types_prod.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build linux darwin // +build !gldebug package gl