diff --git a/include/Nazara/Core/SignalHandlerAppComponent.inl b/include/Nazara/Core/SignalHandlerAppComponent.inl index 5c9e4c725..1e6c2463e 100644 --- a/include/Nazara/Core/SignalHandlerAppComponent.inl +++ b/include/Nazara/Core/SignalHandlerAppComponent.inl @@ -6,7 +6,7 @@ namespace Nz { - SignalHandlerAppComponent::SignalHandlerAppComponent(ApplicationBase& app) : + inline SignalHandlerAppComponent::SignalHandlerAppComponent(ApplicationBase& app) : ApplicationComponent(app) { InstallSignalHandler(); diff --git a/src/Nazara/Core/Posix/ThreadImpl.cpp b/src/Nazara/Core/Posix/ThreadImpl.cpp index d7255cd25..3914f97ac 100644 --- a/src/Nazara/Core/Posix/ThreadImpl.cpp +++ b/src/Nazara/Core/Posix/ThreadImpl.cpp @@ -35,7 +35,7 @@ namespace Nz::PlatformImpl void SetCurrentThreadName(const char* threadName) { -#if defined(__linux__) || defined(NAZARA_COMPILER_MINGW) +#if defined(__linux__) ::pthread_setname_np(::pthread_self(), threadName); #elif defined(__APPLE__) ::pthread_setname_np(threadName); @@ -48,7 +48,7 @@ namespace Nz::PlatformImpl void SetThreadName(pthread_t threadHandle, const char* threadName) { -#if defined(__linux__) || defined(NAZARA_COMPILER_MINGW) +#if defined(__linux__) ::pthread_setname_np(threadHandle, threadName); #elif defined(__APPLE__) NazaraWarning("only current thread name can be set on MacOS X");