在 2023-02-12 22:13, Mateusz Wajchęprzełóż 写道:
The LeaseObtained and LeaseExpires fields of the IP_ADAPTER_INFO structure are declared as time_t, which on 32-bit target can be either 32-bit or 64-bit, but the 32-bit version of the GetAdaptersInfo function requires these fields to be 32-bit.MSDN recommends defining the _USE_32BIT_TIME_T macro in translation units that use the IP_ADAPTER_INFO structure. I don't feel that's the right approach. IMHO we should just declare these fields as __time32_t or __time64_t depending on the target bitness.
I agree with this change - makes much sense. Thanks for the patch. Pushed now. -- Best regards, LIU Hao
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
