mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
[3.13] gh-127906: Fix Py_BUILD_ASSERT_EXPR() on Windows (#127994)
gh-127906: Fix Py_BUILD_ASSERT_EXPR() on Windows Change Py_BUILD_ASSERT_EXPR implementation on Windows to avoid a compiler warning about an unnamed structure.
This commit is contained in:
parent
89f4b23f9e
commit
8e143b2886
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@
|
|||
#define Py_CHARMASK(c) ((unsigned char)((c) & 0xff))
|
||||
|
||||
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \
|
||||
&& !defined(__cplusplus))
|
||||
&& !defined(__cplusplus) && !defined(_MSC_VER))
|
||||
# define Py_BUILD_ASSERT_EXPR(cond) \
|
||||
((void)sizeof(struct { int dummy; _Static_assert(cond, #cond); }), \
|
||||
0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue