On Tue, Dec 30, 2025, at 10:40 AM, Kirill Makurin wrote:
> Thank you for suggestion, but I don't think this is necessary. I'm 
> thinking to extend existing code to something like this:
>
> ```
> #ifdef _WIN64
> # ifdef pid_t
> static_assert (sizeof (pid_t) == sizeof (__int64), "...");
> #undef pid_t
> # endif
> typedef __int64 pid_t;
> #else /* _WIN32 */
> # ifdef pid_t
> static_assert (sizeof (pid_t) == sizeof (int), "...");
> #undef pid_t
> # endif
> typedef int pid_t;
> #endif /* _WIN32 */
> ```
>
> Since pthread_compat.h is a public header file, I do not think it is 
> appropriate to test for AC_PID_T_TYPE which is expected to come from 
> config.h, which is project-specific.

Yeah, that seems reasonable.

Thanks for your understanding.

zw

Reply via email to