veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.21k stars 221 forks source link

Compile error with sdl2-2.0.10 #416

Closed Nightwulf closed 5 years ago

Nightwulf commented 5 years ago

Compiling any go-program which includes "github.com/veandco/go-sdl2/sdl" causes an compile error when sdl2-lib is at version 2.0.10: # github.com/veandco/go-sdl2/sdl ../../github.com/veandco/go-sdl2/sdl/hints.go:107:50: could not determine kind of name for C.SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH

After downgrade to sdl2-2.0.9, compile works again. Simple example code showing the problem:

package main

import (
    "github.com/veandco/go-sdl2/sdl"
    "log"
)

func main() {
    err := sdl.Init(sdl.INIT_EVERYTHING)
    if err != nil {
        log.Fatal(err)
    }
}
veeableful commented 5 years ago

Hi @Nightwulf, thanks for reporting this! It should have been fixed in the master branch.

Nightwulf commented 5 years ago

Great, compiling works again. Thanks for the blazingly fast fix!