From 8f3900a9dff4bb88d8a52ad3b239659d2c544006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 20 Dec 2022 22:40:06 +0800 Subject: [PATCH] Windows: add manifest file to indicate that we use UTF-8 and support Windows 10+ --- src/util/windows/manifest.xml | 23 +++++++++++++++++++++++ src/util/windows/version.rc | 6 +++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/util/windows/manifest.xml diff --git a/src/util/windows/manifest.xml b/src/util/windows/manifest.xml new file mode 100644 index 000000000..420545ded --- /dev/null +++ b/src/util/windows/manifest.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + UTF-8 + true + SegmentHeap + + + diff --git a/src/util/windows/version.rc b/src/util/windows/version.rc index a8ea2519c..e130a65e9 100644 --- a/src/util/windows/version.rc +++ b/src/util/windows/version.rc @@ -1,6 +1,7 @@ // // Include the necessary resources // +#include #include #include #include "fastfetch_config.h" @@ -16,7 +17,10 @@ #define VER_DEBUG 0 #endif -#define FF_TO_STR(str) #str +#define FF_TO_STR1(str) #str +#define FF_TO_STR(str) FF_TO_STR1(str) + +CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "manifest.xml" // ------- version info -------------------------------------------------------