diff --git a/Include/cpython/pytime.h b/Include/cpython/pytime.h index 16d88d191e9e25..46cc97bd7cfec3 100644 --- a/Include/cpython/pytime.h +++ b/Include/cpython/pytime.h @@ -53,7 +53,7 @@ functions and constants extern "C" { #endif -#ifdef __clang__ +#if defined(__clang__) || defined(_MSC_VER) struct timeval; #endif