summaryrefslogtreecommitdiffstats
path: root/platform/windows/godot_windows.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-08 10:53:36 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-08 10:53:36 +0100
commit11964fb569a8c716120b240f067efd4a996b9ecb (patch)
treeb8b9cb71861fc97ce1c48f228674cb864618865f /platform/windows/godot_windows.cpp
parent261952a4c712e173994d596ef1161e97d812ffd3 (diff)
parent625c4bdacef4173f94200632362e25e537ad5d21 (diff)
downloadredot-engine-11964fb569a8c716120b240f067efd4a996b9ecb.tar.gz
Merge pull request #87464 from bruvzg/pck_section
[Linux] Add support for PCK embedding section with non GNU-ld linkers.
Diffstat (limited to 'platform/windows/godot_windows.cpp')
-rw-r--r--platform/windows/godot_windows.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/windows/godot_windows.cpp b/platform/windows/godot_windows.cpp
index 8d63b1747e..f86ecd87fb 100644
--- a/platform/windows/godot_windows.cpp
+++ b/platform/windows/godot_windows.cpp
@@ -36,7 +36,7 @@
#include <stdio.h>
// For export templates, add a section; the exporter will patch it to enclose
-// the data appended to the executable (bundled PCK)
+// the data appended to the executable (bundled PCK).
#ifndef TOOLS_ENABLED
#if defined _MSC_VER
#pragma section("pck", read)
@@ -45,7 +45,7 @@ __declspec(allocate("pck")) static char dummy[8] = { 0 };
// Dummy function to prevent LTO from discarding "pck" section.
extern "C" char *__cdecl pck_section_dummy_call() {
return &dummy[0];
-};
+}
#if defined _AMD64_
#pragma comment(linker, "/include:pck_section_dummy_call")
#elif defined _X86_