diff options
author | George Hazan <george.hazan@gmail.com> | 2025-02-14 20:24:00 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-02-14 20:24:00 +0300 |
commit | 779a717af48dba984da1fbab476c241fc0732e9d (patch) | |
tree | ed6a3f367fcb021a67dde56442a48f718cc98c94 /libs/litehtml/src/string_id.cpp | |
parent | 83594538180d5c942a5807720216bc2f471a34fb (diff) |
fixes #4864 (NewStory: не вгружается под Windows XP)
Diffstat (limited to 'libs/litehtml/src/string_id.cpp')
-rw-r--r-- | libs/litehtml/src/string_id.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/litehtml/src/string_id.cpp b/libs/litehtml/src/string_id.cpp index d197d24469..6cc94cf5ff 100644 --- a/libs/litehtml/src/string_id.cpp +++ b/libs/litehtml/src/string_id.cpp @@ -2,10 +2,13 @@ #include "string_id.h" #include <cassert> +#include <Windows.h> +#include <m_system.h> + #ifndef LITEHTML_NO_THREADS #include <mutex> - static std::mutex mutex; - #define lock_guard std::lock_guard<std::mutex> lock(mutex) + static mir_cs mutex; + #define lock_guard mir_cslock lock(mutex) #else #define lock_guard #endif |