Fix compilation
This commit is contained in:
parent
57ad486c01
commit
9e3ca2472b
|
|
@ -29,7 +29,7 @@ namespace Nz::PlatformImpl
|
||||||
|
|
||||||
return std::string(&name[0]);
|
return std::string(&name[0]);
|
||||||
#else
|
#else
|
||||||
NazaraUnused(threadHandle)
|
NazaraUnused(threadHandle);
|
||||||
return "<unsupported>";
|
return "<unsupported>";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
@ -41,7 +41,7 @@ namespace Nz::PlatformImpl
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
::pthread_setname_np(threadName);
|
::pthread_setname_np(threadName);
|
||||||
#else
|
#else
|
||||||
NazaraUnused(threadName)
|
NazaraUnused(threadName);
|
||||||
NazaraWarning("setting current thread name is not supported on this platform");
|
NazaraWarning("setting current thread name is not supported on this platform");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
@ -51,12 +51,12 @@ namespace Nz::PlatformImpl
|
||||||
#if defined(__linux__) || defined(__FreeBSD__)
|
#if defined(__linux__) || defined(__FreeBSD__)
|
||||||
::pthread_setname_np(threadHandle, threadName);
|
::pthread_setname_np(threadHandle, threadName);
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
NazaraUnused(threadHandle)
|
NazaraUnused(threadHandle);
|
||||||
NazaraUnused(threadName)
|
NazaraUnused(threadName);
|
||||||
NazaraWarning("only current thread name can be set on MacOS X");
|
NazaraWarning("only current thread name can be set on MacOS X");
|
||||||
#else
|
#else
|
||||||
NazaraUnused(threadHandle)
|
NazaraUnused(threadHandle);
|
||||||
NazaraUnused(threadName)
|
NazaraUnused(threadName);
|
||||||
NazaraWarning("setting a thread name is not supported on this platform");
|
NazaraWarning("setting a thread name is not supported on this platform");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -101,8 +101,8 @@ NAZARA_WARNING_MSVC_DISABLE(6320 6322)
|
||||||
NAZARA_WARNING_POP()
|
NAZARA_WARNING_POP()
|
||||||
|
|
||||||
#else
|
#else
|
||||||
NazaraUnused(threadId)
|
NazaraUnused(threadId);
|
||||||
NazaraUnused(threadName)
|
NazaraUnused(threadName);
|
||||||
NazaraWarning("ThreadName exception is only supported with MSVC");
|
NazaraWarning("ThreadName exception is only supported with MSVC");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue