1
0
mirror of synced 2025-02-24 13:43:46 +01:00

fix: Missing <cstdlib> include

This commit is contained in:
WerWolv 2025-01-26 09:22:53 +01:00
parent d0c1213ea0
commit 058a8cdc15

View File

@ -100,7 +100,6 @@
#endif
// GLFW
#include <string_view>
#include <GLFW/glfw3.h>
#ifdef _WIN32
@ -123,6 +122,11 @@
#include <unistd.h> // for usleep()
#endif
#ifdef __linux__
#include <string_view>
#include <cstdlib>
#endif
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#include <emscripten/html5.h>
@ -391,7 +395,7 @@ static void ImGui_ImplGlfw_UpdateKeyModifiers(GLFWwindow* window, int mods)
const auto sessionType = std::getenv("XDG_SESSION_TYPE");
if (sessionType == nullptr)
return false;
return std::string_view(sessionType) == "x11";
}();