fix: Missing <cstdlib> include
This commit is contained in:
parent
d0c1213ea0
commit
058a8cdc15
@ -100,7 +100,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// GLFW
|
// GLFW
|
||||||
#include <string_view>
|
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@ -123,6 +122,11 @@
|
|||||||
#include <unistd.h> // for usleep()
|
#include <unistd.h> // for usleep()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
#include <string_view>
|
||||||
|
#include <cstdlib>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
#include <emscripten.h>
|
#include <emscripten.h>
|
||||||
#include <emscripten/html5.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");
|
const auto sessionType = std::getenv("XDG_SESSION_TYPE");
|
||||||
if (sessionType == nullptr)
|
if (sessionType == nullptr)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return std::string_view(sessionType) == "x11";
|
return std::string_view(sessionType) == "x11";
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user