/
githubmirror
/
marktext
Обзор
Документация
Войти
/
githubmirror
/
marktext
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/desktop/patches/native-keymap+3.3.9.patch
49 строк
2 KB
Ran Luo
chore: convert repo to pnpm monorepo (packages/desktop, muyajs, website) (#4302)
29 май 2026, 05:25
Не верифицирован
29 май 2026, 05:25
565bfcd
Код
Авторство
О чём код?
diff --git a/node_modules/native-keymap/binding.gyp b/node_modules/native-keymap/binding.gyp index c8b244b..0000000 100644 --- a/node_modules/native-keymap/binding.gyp +++ b/node_modules/native-keymap/binding.gyp @@ -14,6 +14,7 @@ }, 'msvs_settings': { 'VCCLCompilerTool': { + 'LanguageStandard': 'stdcpp20', 'AdditionalOptions': [ '/guard:cf', '/sdl', @@ -42,7 +43,8 @@ ], "libraries": [ "<!@(${PKG_CONFIG:-pkg-config} x11 xkbfile --libs)" - ] + ], + 'cflags_cc': ['-std=c++20'] }], ['OS=="freebsd"', { "sources": [ @@ -69,6 +71,10 @@ "sources": [ "src/keyboard_mac.mm" ], + 'xcode_settings': { + 'CLANG_CXX_LANGUAGE_STANDARD': 'c++20', + 'CLANG_CXX_LIBRARY': 'libc++' + }, 'link_settings' : { 'libraries' : [ '-framework Cocoa' diff --git a/node_modules/native-keymap/src/keymapping.cc b/node_modules/native-keymap/src/keymapping.cc index 0000000..0000000 100644 --- a/node_modules/native-keymap/src/keymapping.cc +++ b/node_modules/native-keymap/src/keymapping.cc @@ -4,7 +4,11 @@ *--------------------------------------------------------------------------------------------*/ #define NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT +#ifdef _MSC_VER +#include <intrin.h> +#define __builtin_frame_address(x) (_AddressOfReturnAddress()) +#endif #include <node.h> #include <map> #include "keymapping.h"