From 2080b9f22f0c49abd47942356682e92645eabdb5 Mon Sep 17 00:00:00 2001 From: MicheleCaovilla Date: Thu, 9 Jan 2025 16:01:00 +0100 Subject: [PATCH] Compile fix for PS5 platform --- Source/ThirdParty/ImGuiLibrary/Private/imgui.cpp | 4 ++++ Source/ThirdParty/ImPlotLibrary/Private/implot.cpp | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/Source/ThirdParty/ImGuiLibrary/Private/imgui.cpp b/Source/ThirdParty/ImGuiLibrary/Private/imgui.cpp index f85d4f13..67de30df 100644 --- a/Source/ThirdParty/ImGuiLibrary/Private/imgui.cpp +++ b/Source/ThirdParty/ImGuiLibrary/Private/imgui.cpp @@ -15026,6 +15026,10 @@ static void Platform_SetClipboardTextFn_DefaultImpl(ImGuiContext* ctx, const cha #if defined(_WIN32) && defined(IMGUI_DISABLE_WIN32_FUNCTIONS) #define IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS #endif + +#if PLATFORM_PS5 +#define IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS +#endif #endif #ifndef IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS diff --git a/Source/ThirdParty/ImPlotLibrary/Private/implot.cpp b/Source/ThirdParty/ImPlotLibrary/Private/implot.cpp index 6753a2e8..c867a234 100644 --- a/Source/ThirdParty/ImPlotLibrary/Private/implot.cpp +++ b/Source/ThirdParty/ImPlotLibrary/Private/implot.cpp @@ -911,6 +911,8 @@ ImPlotTime MkGmtTime(struct tm *ptm) { ImPlotTime t; #ifdef _WIN32 t.S = _mkgmtime(ptm); +#elif PLATFORM_PS5 + t.S = 0; #else t.S = timegm(ptm); #endif @@ -926,6 +928,8 @@ tm* GetGmtTime(const ImPlotTime& t, tm* ptm) return ptm; else return nullptr; +#elif PLATFORM_PS5 + return nullptr; #else return gmtime_r(&t.S, ptm); #endif @@ -945,6 +949,8 @@ tm* GetLocTime(const ImPlotTime& t, tm* ptm) { return ptm; else return nullptr; +#elif PLATFORM_PS5 + return nullptr; #else return localtime_r(&t.S, ptm); #endif