Skip to content

Commit

Permalink
Fix undefined glfwGetWin32Window
Browse files Browse the repository at this point in the history
  • Loading branch information
chances committed Sep 28, 2023
1 parent 61414bb commit 1429cd8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/triangle/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,12 @@ auto bindDelegate(Func, string file = __FILE__, size_t line = __LINE__)(Func f)
return &func;
}

version (Windows) {
import core.sys.windows.windows : GetModuleHandleA, HWND;
// FIXME: What's wrong with https://github.com/BindBC/bindbc-glfw/blob/6529ce4f67f69839a93de5e0bbe1150fab30d633/source/bindbc/glfw/bindstatic.d#L172
extern(C) @nogc nothrow HWND glfwGetWin32Window(GLFWwindow* window);
}

// mac OS interop with the Objective-C Runtime
version (OSX) {
import core.attribute : selector;
Expand Down

0 comments on commit 1429cd8

Please sign in to comment.