Skip to content

Commit 3b6c7b3

Browse files
committed
Fix build
1 parent 85790f4 commit 3b6c7b3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Python/pytime.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@
5555
#endif
5656

5757

58+
#ifdef MS_WINDOWS
59+
static _PyTimeFraction py_qpc_base = {0, 0};
60+
61+
// Forward declaration
62+
static int py_win_perf_counter_frequency(_PyTimeFraction *base, int raise_exc);
63+
#endif
64+
65+
5866
static PyTime_t
5967
_PyTime_GCD(PyTime_t x, PyTime_t y)
6068
{
@@ -1056,8 +1064,6 @@ py_win_perf_counter_frequency(_PyTimeFraction *base, int raise_exc)
10561064
}
10571065

10581066

1059-
static _PyTimeFraction py_qpc_base = {0, 0};
1060-
10611067
// N.B. If raise_exc=0, this may be called without the GIL.
10621068
static int
10631069
py_get_win_perf_counter(PyTime_t *tp, _Py_clock_info_t *info, int raise_exc)

0 commit comments

Comments
 (0)