Skip to content

Commit a1355f7

Browse files
committed
🛠 MinGW Shenanigans
1 parent c75fc16 commit a1355f7

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

examples/source/custom_attribute_name.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ inline static int thread_custom_name_attr(
6464
pthread_setname_np(t_handle, "meow!", NULL);
6565
#elif ZTD_IS_ON(ZTD_C_STDLIB_BSD) && (ZTD_IS_ON(ZTD_PLATFORM_FREE_BSD) || ZTD_IS_ON(ZTD_PLATFORM_OPEN_BSD))
6666
pthread_set_name_np(t_handle, "meow!");
67-
#elif ZTD_IS_ON(ZTD_PLATFORM_WINDOWS)
67+
#elif ZTD_IS_ON(ZTD_PLATFORM_WINDOWS) && ZTD_IS_OFF(ZTD_COMPILER_MINGW)
6868
SetThreadDescription(t_handle, L"meow!");
69+
#elif ZTD_IS_ON(ZTD_PLATFORM_WINDOWS) && ZTD_IS_ON(ZTD_COMPILER_MINGW)
70+
pthread_setname_np(t_handle, "meow!");
6971
#endif
7072
return thrd_success;
7173
}

include/ztd/thread/threads.native.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ ZTD_USE(ZTD_THREAD_API_LINKAGE)
112112
/// @brief Returns the native handle out of `__thr`.
113113
///
114114
/// @param[in] __thr The thread to get the native, platform-specific handle for.
115-
/// @param[inout] __p_thrd_handle The native handle object which represents `__thr`.
116115
///
117116
/// @return The native "handle" object which represents `__thr`. May be an invalid sentinel type if it can't fetch it
118117
/// properly.

0 commit comments

Comments
 (0)