audio/vorbis/internal/stb: Bug fix: Forbid to use it from Wasm

This commit is contained in:
Hajime Hoshi 2019-10-28 00:04:23 +09:00
parent f50875ff4b
commit fe805d7fd1
3 changed files with 3 additions and 5 deletions

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build js !wasm // +build js,!wasm
package stb package stb

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build js !wasm
package stb package stb
// stbvorbis.js // stbvorbis.js
@ -21,4 +19,4 @@ package stb
// License: Apache License 2.0 // License: Apache License 2.0
// Commit: ac1c2ee9d24eb6085eb1e968f55e0fb32cacc03a // Commit: ac1c2ee9d24eb6085eb1e968f55e0fb32cacc03a
//go:generate file2byteslice -package=stb -input=stbvorbis.js -output=stbvorbis.js.go -var=stbvorbis_js -buildtags "js !wasm" //go:generate file2byteslice -package=stb -input=stbvorbis.js -output=stbvorbis.js.go -var=stbvorbis_js -buildtags "js,!wasm"

View File

@ -1,7 +1,7 @@
// Code generated by file2byteslice. DO NOT EDIT. // Code generated by file2byteslice. DO NOT EDIT.
// (gofmt is fine after generating) // (gofmt is fine after generating)
// +build js !wasm // +build js,!wasm
package stb package stb