Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
  • Loading branch information
vstinner committed Dec 13, 2024
commit 286831df3738f62e0b7aed3fa52f942e1fa0d0e6
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