Skip to content

Commit 248a69c

Browse files
Fix pyhash_runtime_state on Windows.
1 parent ffdd34a commit 248a69c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Include/internal/pycore_pyhash.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66
#endif
77

88

9-
#ifndef MS_WINDOWS
109
struct pyhash_runtime_state {
10+
// This is a placeholder so the struct isn't empty on Windows.
11+
int _not_used;
12+
#ifndef MS_WINDOWS
1113
struct {
1214
int fd;
1315
dev_t st_dev;
1416
ino_t st_ino;
1517
} urandom_cache;
16-
};
1718
#endif
19+
};
1820

1921

2022
uint64_t _Py_KeyedHash(uint64_t, const char *, Py_ssize_t);

0 commit comments

Comments
 (0)