Skip to content

Commit 2e9a47a

Browse files
committed
🛠 Unsupported feature guard (MinGW UCRT doesn't allow for this)
1 parent a97f630 commit 2e9a47a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/ztd/thread/threads.pthreads.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,10 +597,12 @@ int __ztdc_pthreads_thrd_create_attrs_err(thrd_t* __thr, thrd_start_t __func, vo
597597
__attr_err = __ztdc_pthread_to_thread_error(
598598
pthread_attr_setstack(&__impl_attrs, __attr->buffer, __attr->size));
599599
} break;
600+
#if ZTD_IS_OFF(ZTD_C_STDLIB_UCRT)
600601
case ztdc_thrd_attr_kind__stack_guard_size: {
601602
ztdc_thrd_attr__stack_guard_size* __attr = (ztdc_thrd_attr__stack_guard_size*)__attr_kind;
602603
__attr_err = __ztdc_pthread_to_thread_error(pthread_attr_setguardsize(&__impl_attrs, __attr->size));
603604
} break;
605+
#endif
604606
default:
605607
// unhandled attributes are considered errors
606608
__attr_err = thrd_error;

0 commit comments

Comments
 (0)