diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-01 12:19:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 12:19:53 +0100 |
commit | 473f681651e5a4859d6e4c4a3cef2d5aa3d736e6 (patch) | |
tree | a0a91d0ecdb24f563829325a7dd9b2443d4aa192 | |
parent | a1469bff19294c2cfd5c103d1e80540a9d883dda (diff) | |
parent | 5a1f42b32220d750410ccc5f5f7c6a3408426294 (diff) |
Merge pull request #57509 from akien-mga/windows-pck-embed-fpermissive
-rw-r--r-- | platform/windows/godot_windows.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/windows/godot_windows.cpp b/platform/windows/godot_windows.cpp index c4926209c7..618d5670d2 100644 --- a/platform/windows/godot_windows.cpp +++ b/platform/windows/godot_windows.cpp @@ -39,7 +39,7 @@ #ifndef TOOLS_ENABLED #if defined _MSC_VER #pragma section("pck", read) -__declspec(allocate("pck")) static char dummy[8] = { 0 }; +__declspec(allocate("pck")) static const char dummy[8] = { 0 }; #elif defined __GNUC__ static const char dummy[8] __attribute__((section("pck"), used)) = { 0 }; #endif @@ -142,7 +142,7 @@ int widechar_main(int argc, wchar_t **argv) { #ifndef TOOLS_ENABLED // Workaround to prevent LTCG (MSVC LTO) from removing "pck" section - char *dummy_guard = dummy; + const char *dummy_guard = dummy; #endif char **argv_utf8 = new char *[argc]; |