Skip to content

Commit c77bfd7

Browse files
authored
[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
1 parent f3a689f commit c77bfd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/cpython/pytime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ functions and constants
5353
extern "C" {
5454
#endif
5555

56-
#ifdef __clang__
56+
#if defined(__clang__) || defined(_MSC_VER)
5757
struct timeval;
5858
#endif
5959

0 commit comments

Comments
 (0)