On Tue, Feb 8, 2022 at 7:56 PM Evgeny Kotkov
<evgeny.kot...@visualsvn.com> wrote:
>
> Yann Ylavic <yla...@apache.org> writes:
>
> > +APR_DECLARE(apr_status_t) apr_thread_current_create(apr_thread_t **current,
> > +                                                    apr_threadattr_t *attr,
> > +                                                    apr_pool_t *pool)
> > +{
> > +    apr_status_t stat;
> > +
> > +    *current = apr_thread_current();
> > +    if (*current) {
> > +        return APR_EEXIST;
> > +    }
> > +
> > +    stat = alloc_thread(current, attr, NULL, NULL, pool);
> > +    if (stat != APR_SUCCESS) {
> > +        return stat;
> > +    }
> > +
> > +    if (!(attr && attr->detach)) {
> > +        (*new)->td = apr_os_thread_current();
> > +    }
>
> Hi Yann,
>
> It looks like this hunk doesn't compile on Windows:
>
>   …\threadproc\win32\thread.c(193): error C2065: 'new': undeclared identifier
>   …\threadproc\win32\thread.c(193): error C2100: illegal indirection
>   …\threadproc\win32\thread.c(193): error C2223: left of '->td' must point
>   to struct/union

Thanks, hopefully fixed in r1897879.


Regards;
Yann.

Reply via email to