Skip to content

Commit

Permalink
gh-127906: Declare timeval struct in pytime.h on Windows
Browse files Browse the repository at this point in the history
Fix the following MSVC compiler warning:

    include\cpython\pytime.h(192): warning C4115: 'timeval':
    named type definition in parentheses
  • Loading branch information
vstinner committed Dec 13, 2024
1 parent 2d31733 commit 286831d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Include/cpython/pytime.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ functions and constants
extern "C" {
#endif

#ifdef __clang__
#if defined(__clang__) || defined(_MSC_VER)
struct timeval;
#endif

Expand Down

0 comments on commit 286831d

Please sign in to comment.