Repository navigation
Commit 33c08a2
committed
Guard IS_ENABLED() self-test behind C11
_Static_assert is C11; MSVC's default C mode (used by Python's
setuptools to build the wheel) rejects it at file scope, which broke
the Windows wheel build. Gate the self-test on __STDC_VERSION__ >=
201112L. The IS_ENABLED() macro needs only a standard preprocessor,
so pre-C11 builds lose nothing.
Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>1 parent 0f6dbaa commit 33c08a2
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| 28 | + | |
21 | 29 | | |
22 | 30 | | |
23 | 31 | | |
| |||
0 commit comments