Skip to content

Commit ddb764d

Browse files
author
Anthony Debucquoy
committed
backend impl api to extern c
1 parent ceec00d commit ddb764d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ pub fn build(b: *std.Build) void {
8585
"-Wno-elaborated-enum-base",
8686
"-Wno-error=date-time",
8787
if (options.use_32bit_draw_idx) "-DIMGUI_USE_32BIT_DRAW_INDEX" else "",
88+
"-DIMGUI_IMPL_API=extern \"C\" ",
8889
};
8990

9091
const objcflags = &.{
@@ -117,7 +118,6 @@ pub fn build(b: *std.Build) void {
117118
"imgui_tables.cpp",
118119
"imgui_draw.cpp",
119120
"imgui_demo.cpp",
120-
//TODO <tonitch>: add the backend from option
121121
},
122122
.flags = cflags,
123123
});

0 commit comments

Comments
 (0)