Skip to content

Commit

Permalink
Add workaround for NetBSD (#4139)
Browse files Browse the repository at this point in the history
  • Loading branch information
NishiOwO committed Jul 8, 2024
1 parent 9764fef commit 598b7f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/platforms/rcore_desktop_glfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1617,6 +1617,10 @@ int InitPlatform(void)
CORE.Storage.basePath = GetWorkingDirectory();
//----------------------------------------------------------------------------

#if defined(__NetBSD__)
// Workaround for NetBSD
char* glfwPlatform = "X11";
#else
char* glfwPlatform = "";
switch (glfwGetPlatform())
{
Expand All @@ -1626,6 +1630,7 @@ int InitPlatform(void)
case GLFW_PLATFORM_X11: glfwPlatform = "X11"; break;
case GLFW_PLATFORM_NULL: glfwPlatform = "Null"; break;
}
#endif

TRACELOG(LOG_INFO, "GLFW platform: %s", glfwPlatform);
TRACELOG(LOG_INFO, "PLATFORM: DESKTOP (GLFW): Initialized successfully");
Expand Down

0 comments on commit 598b7f5

Please sign in to comment.