forked from inkyblackness/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrapper.go
16 lines (14 loc) · 839 Bytes
/
wrapper.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package imgui
// #cgo CPPFLAGS: -I./imgui -DIMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS
// #cgo CXXFLAGS: -std=c++11
// #cgo CXXFLAGS: -Wno-subobject-linkage
import "C"
// Note: imgui_freetype.cpp compilation gives these warnings, hence it's disabled in CXXFLAGS
//
// In file included from wrapper.cpp:10:
// .\imgui/misc/freetype/imgui_freetype.cpp:294:8: warning: 'ImFontBuildSrcGlyphFT' has a field 'ImFontBuildSrcGlyphFT::Info' whose type uses the anonymous namespace [-Wsubobject-linkage]
// 294 | struct ImFontBuildSrcGlyphFT
// | ^~~~~~~~~~~~~~~~~~~~~
// .\imgui/misc/freetype/imgui_freetype.cpp:301:8: warning: 'ImFontBuildSrcDataFT' has a field 'ImFontBuildSrcDataFT::Font' whose type uses the anonymous namespace [-Wsubobject-linkage]
// 301 | struct ImFontBuildSrcDataFT
// | ^~~~~~~~~~~~~~~~~~~~