Skip to content

Commit b5f4305

Browse files
committed
gl: define flags via CPPFLAGS so cgo gets them too
1 parent 8adbc8c commit b5f4305

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gl/gengl.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
package gl
44

5-
// #define GL_GLEXT_PROTOTYPES
65
// #include "gl.h"
76
// #include "glext.h"
87
//

gl/gl.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package gl
22

3-
// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing -DGL_GLEXT_PROTOTYPES -DGL_GLEXT_LEGACY
3+
// #cgo CXXFLAGS: -std=c++0x -pedantic-errors -Wall -fno-strict-aliasing
4+
// #cgo CPPFLAGS: -DGL_GLEXT_PROTOTYPES -DGL_GLEXT_LEGACY
45
// #cgo LDFLAGS: -lstdc++
56
// #cgo !darwin LDFLAGS: -lGL
67
// #cgo darwin LDFLAGS: -framework OpenGL

0 commit comments

Comments
 (0)