Commit ceca3d1
committed
py/objtype: Move #if outside MP_DEFINE_CONST_OBJ_TYPE for MSVC.
MSVC doesn't support preprocessor conditionals inside macro arguments.
Split the mp_type_type definition into two separate invocations based
on MICROPY_PY_METACLASS_OPS to avoid placing #if/#endif inside the
macro call.
This fixes Windows port MSVC compilation errors C2121 and C2059.
Signed-off-by: Andrew Leech <[email protected]>1 parent 975d4cd commit ceca3d1
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1413 | 1413 | | |
1414 | 1414 | | |
1415 | 1415 | | |
| 1416 | + | |
1416 | 1417 | | |
1417 | 1418 | | |
1418 | 1419 | | |
1419 | 1420 | | |
1420 | 1421 | | |
1421 | 1422 | | |
1422 | 1423 | | |
1423 | | - | |
1424 | 1424 | | |
1425 | 1425 | | |
1426 | | - | |
1427 | 1426 | | |
1428 | 1427 | | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
1429 | 1439 | | |
1430 | 1440 | | |
1431 | 1441 | | |
| |||
0 commit comments