Skip to content

Commit

Permalink
no-mangle size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Jan 15, 2025
1 parent 8cdff5d commit 05ccc9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cimgui/cimgui.d
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ module cimgui.cimgui;
public import cimgui.dcimgui;

// replace object.size_t to cimgui.dcimgui.size_t
version (Windows) alias size_t = cimgui.dcimgui.size_t;

extern (C)
{
version (Windows) alias size_t = cimgui.dcimgui.size_t;
}
scope ImGuiContext_t* CreateContext(scope const(ImFontAtlas_t)* shared_font_atlas) @trusted
{
return igCreateContext(cast(ImFontAtlas_t*) shared_font_atlas);
Expand Down

0 comments on commit 05ccc9b

Please sign in to comment.