On Tue, Dec 30, 2025, at 2:12 AM, Kirill Makurin wrote: > I was afraid it would be not as simple as changing a few lines of code > responsible for emitting code into config.h.
If you are interested in improving the code that generates config.h, it's in lib/autoconf/status.m4. But it won't be an easy task. > Luckily, both AC_TYPE_PID_T and winpthreads define pid_t to the same > underlying types: int for 32-bit targets and __int64 (long long) for > 64-bit targets. So, there is no disagreement. Good. Would it be helpful for us to supply an auxiliary #define with a different name? For instance, AC_TYPE_PID_T could be changed to put *this* in config.h #define AC_PID_T_TYPE <int or __int64> #define pid_t AC_PID_T_TYPE and then your header could do something like #ifdef AC_PID_T_TYPE #undef pid_t typedef AC_PID_T_TYPE pid_t #else // ... #endif zw
