LibCore: Fix Notifier.cpp compilation errors on Windows

This commit is contained in:
stasoid 2024-11-16 12:44:30 +05:00
parent d6bcd3fb0b
commit b8991174f6
3 changed files with 10 additions and 1 deletions

View file

@ -110,3 +110,8 @@ endif()
if (ANDROID)
target_link_libraries(LibCore PRIVATE log)
endif()
if (WIN32)
find_path(PTHREAD_INCLUDE_DIR pthread.h REQUIRED)
target_include_directories(LibCore PRIVATE ${PTHREAD_INCLUDE_DIR})
endif()

View file

@ -41,7 +41,7 @@ private:
int m_fd { -1 };
bool m_is_enabled { false };
pthread_t m_owner_thread { 0 };
pthread_t m_owner_thread {};
Type m_type { Type::None };
};

View file

@ -71,6 +71,10 @@
"simd"
]
},
{
"name": "pthread",
"platform": "windows"
},
"simdutf",
{
"name": "skia",