Skip to content

Commit

Permalink
hotfix windows size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Jan 15, 2025
1 parent 002ffb7 commit bb0dc31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cimgui/cimgui.d
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module cimgui.cimgui;
// get dcimgui headers to module - @system (unsafe) functions by default
public import cimgui.dcimgui;

// replace object.size_t (DRT) with C size_t
alias size_t = cimgui.dcimgui.size_t;
// replace object.size_t (DRT) to new size_t
version (Windows) alias size_t = typeof(int.sizeof);

scope ImGuiContext_t* CreateContext(scope const(ImFontAtlas_t)* shared_font_atlas) @trusted
{
Expand Down

0 comments on commit bb0dc31

Please sign in to comment.