mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-10-12 14:00:35 +02:00
Fix MSVC-related #defines and add CMakeLists comment
This commit is contained in:
1 parent
8ba9ac0f74
commit
5d10b212ec
6 files changed
+11
-11
No files matched your search
@@ -17,7 +17,7 @@ namespace Common
|
||||
|
||||
int CurrentThreadId()
|
||||
{
|
||||
#ifdef MSVC_VER
|
||||
#ifdef _MSC_VER
|
||||
return GetCurrentThreadId();
|
||||
#elif defined __APPLE__
|
||||
return mach_thread_self();
|
||||
@@ -34,7 +34,7 @@ void SleepCurrentThread(int ms)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef MSVC_VER
|
||||
#ifdef _MSC_VER
|
||||
|
||||
void SetThreadAffinity(std::thread::native_handle_type thread, u32 mask)
|
||||
{
|
||||
@@ -121,7 +121,7 @@ void SwitchCurrentThread()
|
||||
#endif
|
||||
|
||||
// MinGW with the POSIX threading model does not support pthread_setname_np
|
||||
#if !defined(_WIN32) || defined(MSVC_VER)
|
||||
#if !defined(_WIN32) || defined(_MSC_VER)
|
||||
void SetCurrentThreadName(const char* szThreadName)
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
|
||||
Reference in new issue
Block a user