diff options
| author | NishiOwO <[email protected]> | 2024-07-09 05:47:35 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-08 22:47:35 +0200 |
| commit | 598b7f52104a4dd9246ffe01cffcdc0b376cb45c (patch) | |
| tree | 248753b4c9149f47855868587212d9ef949ae6c7 /src/platforms | |
| parent | 9764fef26260e6fcf671ddffb230360cc1efa1f8 (diff) | |
| download | raylib-598b7f52104a4dd9246ffe01cffcdc0b376cb45c.tar.gz raylib-598b7f52104a4dd9246ffe01cffcdc0b376cb45c.zip | |
Add workaround for NetBSD (#4139)
Diffstat (limited to 'src/platforms')
| -rw-r--r-- | src/platforms/rcore_desktop_glfw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c index dbdde9db..67cf9def 100644 --- a/src/platforms/rcore_desktop_glfw.c +++ b/src/platforms/rcore_desktop_glfw.c @@ -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()) { @@ -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"); |
