diff options
author | George Hazan <george.hazan@gmail.com> | 2024-04-11 17:49:11 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-04-11 17:49:11 +0300 |
commit | 9fe2c936b5a3448111fbca845b0867a82c4f3863 (patch) | |
tree | edb80adebe10713ca57e701dfc4e255fbb98bec4 /libs/litehtml | |
parent | a51716398f6ebc39004cbe6143956b7ce2a62b01 (diff) |
fixes #4326 (NewStory: падение при запуске в Windows XP)
Diffstat (limited to 'libs/litehtml')
-rw-r--r-- | libs/litehtml/src/string_id.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/litehtml/src/string_id.cpp b/libs/litehtml/src/string_id.cpp index 9f8390303e..d356bef31f 100644 --- a/libs/litehtml/src/string_id.cpp +++ b/libs/litehtml/src/string_id.cpp @@ -3,9 +3,10 @@ #include <assert.h> #ifndef LITEHTML_NO_THREADS - #include <mutex> - static std::mutex mutex; - #define lock_guard std::lock_guard<std::mutex> lock(mutex) + #include <Windows.h> + #include <newpluginapi.h> + static mir_cs mutex; + #define lock_guard mir_cslock lock(mutex) #else #define lock_guard #endif |