Method to identify what backend GLFW is using?

I’m currently trying to utilize the functions found in the native access api for glfw, but there doesn’t seem to be a way to check what backend glfw is actually using, at first i thought _GLFW_<platform>, ex _GLFW_X11 would be it, but it seems to be undefed at some point. Thanks in advace.

There’s no platform specific definition exposed in the GLFW header, you’re meant to set up your build system to handle this yourself. The logic GLFW uses in cmake is relatively straight forward:

1 Like

Thanks, this was the hotfix I applied but I figured there would be a better way to do it, would you all be open to a pull request that implements this in GLFW itself? Thanks again :slight_smile:

Contributions are usually welcome - do check out the guidelines first: