diff options
| author | dartraiden <wowemuh@gmail.com> | 2025-06-06 14:15:57 +0300 |
|---|---|---|
| committer | dartraiden <wowemuh@gmail.com> | 2025-06-06 14:16:23 +0300 |
| commit | d9a702e80233b1fd7e6d9476793bef89b9181b04 (patch) | |
| tree | caa3ffbbce2bb00c033149b2602bde3efa1a4660 /libs | |
| parent | f9a0656a9d9460360eca74d2f335b73ce7411f6f (diff) | |
litehtml: fix Windows XP compatibility
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/litehtml/src/string_id.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/litehtml/src/string_id.cpp b/libs/litehtml/src/string_id.cpp index d197d24469..ac131962b7 100644 --- a/libs/litehtml/src/string_id.cpp +++ b/libs/litehtml/src/string_id.cpp @@ -2,10 +2,12 @@ #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 |
