Skip to content

Commit

Permalink
[3.12] pythongh-127906: Declare timeval struct in pytime.h on Windows (
Browse files Browse the repository at this point in the history
…python#127908)

pythongh-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 authored Dec 13, 2024
1 parent f3a689f commit c77bfd7
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 c77bfd7

Please sign in to comment.