Skip to content

Commit 8333cb3

Browse files
committed
🛠️ native handle definitions for various platforms
1 parent 502a4c5 commit 8333cb3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

include/ztd/thread/threads.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,16 @@ int ztdc_thrd_create_attrs_err(thrd_t* __thr, thrd_start_t __func, void* __arg,
171171
typedef
172172
#if ZTD_IS_ON(ZTD_PLATFORM_WINDOWS)
173173
void*
174-
#else
174+
#elif ZTD_IS_ON(ZTD_PLATFORM_PTHREADS)
175+
#if ZTD_IS_OFF(ZTD_HEADER_THREADS_H)
175176
pthread_t
177+
#else
178+
#if ZTD_IS_ON(ZTD_PLATFORM_MACOS)
179+
void*
180+
#else
181+
unsigned long
182+
#endif
183+
#error "Unknown platform."
176184
#endif
177185
__ztdc_thrd_native_handle_t;
178186

0 commit comments

Comments
 (0)