Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.3/glfw: warning: 'GLAPIENTRY' macro redefined #362

Closed
lmas opened this issue Jul 30, 2022 · 2 comments
Closed

v3.3/glfw: warning: 'GLAPIENTRY' macro redefined #362

lmas opened this issue Jul 30, 2022 · 2 comments
Labels

Comments

@lmas
Copy link

lmas commented Jul 30, 2022

Hi, I'm getting this annoying warning on go version go1.18.4 freebsd/amd64.

# github.com/go-gl/glfw/v3.3/glfw
In file included from /home/lmas/.go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20220320163800-277f93cfa958/native_linbsd_x11.go:10:
In file included from /home/lmas/.go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20220320163800-277f93cfa958/glfw/include/GLFW/glfw3native.h:114:
In file included from /usr/local/include/GL/glx.h:32:
/usr/local/include/GL/gl.h:56:11: warning: 'GLAPIENTRY' macro redefined [-Wmacro-redefined]
/home/lmas/.go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20220320163800-277f93cfa958/glfw/include/GLFW/glfw3.h:5898:10: note: previous definition is here

Tracked it to glfw/glfw#2010, which fixes this issue in v3.3.8.

@lmas
Copy link
Author

lmas commented Jul 30, 2022

Oh there's already a PR for pulling in v3.3.8! #361

@lmas
Copy link
Author

lmas commented Aug 6, 2022

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants