diff --git a/internal/glfw/glfw_notwindows.go b/internal/glfw/glfw_notwindows.go index 30676c5ae..ce90667a2 100644 --- a/internal/glfw/glfw_notwindows.go +++ b/internal/glfw/glfw_notwindows.go @@ -13,6 +13,7 @@ // limitations under the License. // +build !windows +// +build !js package glfw diff --git a/internal/glfw/type.go b/internal/glfw/type.go index 9cff47e06..1bf949138 100644 --- a/internal/glfw/type.go +++ b/internal/glfw/type.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build !js + package glfw type ( diff --git a/mobile/impl_empty.go b/mobile/impl_empty.go index 848fc466e..67574966a 100644 --- a/mobile/impl_empty.go +++ b/mobile/impl_empty.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build darwin freebsd linux windows +// +build darwin freebsd js linux windows // +build !android // +build !ios diff --git a/mobile/touches_empty.go b/mobile/touches_empty.go index a0539ac24..e26e8b639 100644 --- a/mobile/touches_empty.go +++ b/mobile/touches_empty.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build darwin freebsd linux windows +// +build darwin freebsd js linux windows // +build !android // +build !ios