[FarGroup/FarManager] master: Fix build (d4443b54b)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Jun 16, 2026, 6:00:54 PM (yesterday) Jun 16
to farco...@googlegroups.com
Repository : https://github.com/FarGroup/FarManager
On branch : master
Link : https://github.com/FarGroup/FarManager/commit/d4443b54b372dd64e79e26332a9a1283573f2d69

>---------------------------------------------------------------

commit d4443b54b372dd64e79e26332a9a1283573f2d69
Author: Alex Alabuzhev <alab...@gmail.com>
Date: Tue Jun 16 22:55:09 2026 +0100

Fix build


>---------------------------------------------------------------

d4443b54b372dd64e79e26332a9a1283573f2d69
far/codepage.hpp | 4 ++--
far/platform.sdk/sdk_gcc.h | 9 +++++++++
2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/far/codepage.hpp b/far/codepage.hpp
index 991737826..620385bf1 100644
--- a/far/codepage.hpp
+++ b/far/codepage.hpp
@@ -59,8 +59,8 @@ namespace encoding::codepage

// Rule of thumb: everywhere a codepage is exposed to the user, use real_ansi() and real_oem() instead of ansi() and oem().
// Everywhere a codepage is used internally, e.g. for communication with the OS, plugins etc., use encoding::ansi::get_* and encoding::oem::get_* functions.
- [[nodiscard]] inline uintptr_t real_ansi();
- [[nodiscard]] inline uintptr_t real_oem();
+ [[nodiscard]] uintptr_t real_ansi();
+ [[nodiscard]] uintptr_t real_oem();

[[nodiscard]] uintptr_t normalise(uintptr_t Codepage);
}
diff --git a/far/platform.sdk/sdk_gcc.h b/far/platform.sdk/sdk_gcc.h
index 566a023c2..c2470349e 100644
--- a/far/platform.sdk/sdk_gcc.h
+++ b/far/platform.sdk/sdk_gcc.h
@@ -377,4 +377,13 @@ STACKFRAME_EX,*LPSTACKFRAME_EX;
// libuuid.a
DEFINE_GUID(IID_IMultiLanguage2, 0xDCCFC164, 0x2B38, 0x11D2, 0xB7, 0xEC, 0x00, 0xC0, 0x4F, 0x8F, 0x5D, 0x9A);

+// winnls.h
+#ifndef LOCALE_IUSEUTF8LEGACYACP
+#define LOCALE_IUSEUTF8LEGACYACP 0x00000666
+#endif
+
+#ifndef LOCALE_IUSEUTF8LEGACYOEMCP
+#define LOCALE_IUSEUTF8LEGACYOEMCP 0x00000999
+#endif
+
#endif // SDK_GCC_H_EA5F3F70_C987_4240_AA25_3016DB39C651


Reply all
Reply to author
Forward
0 new messages