[3.12] gh-127906: Declare timeval struct in pytime.h on Windows (#127908)

gh-127906: Declare timeval struct in pytime.h on Windows

Fix the following MSVC compiler warning:

    include\cpython\pytime.h(192): warning C4115: 'timeval':
    named type definition in parentheses
This commit is contained in:
Victor Stinner 2024-12-13 13:13:49 +01:00 committed by GitHub
parent f3a689fd9d
commit c77bfd768f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,7 +53,7 @@ functions and constants
extern "C" {
#endif
#ifdef __clang__
#if defined(__clang__) || defined(_MSC_VER)
struct timeval;
#endif