summaryrefslogtreecommitdiffstats
path: root/platform/windows
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-01-22 10:47:42 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-01-24 12:21:05 +0200
commit625c4bdacef4173f94200632362e25e537ad5d21 (patch)
treec9e043ce1a65e945055bd805db6891a999bc9e7e /platform/windows
parent0bcc0e92b3f0ac57d4c4650722f347593a258572 (diff)
downloadredot-engine-625c4bdacef4173f94200632362e25e537ad5d21.tar.gz
[Linux] Add support for PCK embedding section with non GNU-ld linkers.
Diffstat (limited to 'platform/windows')
-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_