mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: Missing <cstdlib> include
This commit is contained in:
@@ -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";
|
||||
}();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user