fix: Missing <cstdlib> include
This commit is contained in:
parent
d0c1213ea0
commit
058a8cdc15
@ -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";
|
||||
}();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user