Replace SHAPE_T::RECT by SHAPE_T::RECTANGLE: RECT creates a collision name

issue with a Windows header on msys2.
Change very similar to the commit 9a47b344 about class PAD_SHAPE.
No actual code change
This commit is contained in:
jean-pierre charras
2023-07-25 09:11:55 +02:00
parent b8fc45b14d
commit a16ab0aae1
47 changed files with 149 additions and 147 deletions
+4 -2
View File
@@ -56,18 +56,20 @@
/* Only for compatibility with old python scripts: */
const int S_SEGMENT = (const int)SHAPE_T::SEGMENT;
const int S_RECT = (const int)SHAPE_T::RECT;
const int S_RECT = (const int)SHAPE_T::RECTANGLE;
const int S_ARC = (const int)SHAPE_T::ARC;
const int S_CIRCLE = (const int)SHAPE_T::CIRCLE;
const int S_POLYGON = (const int)SHAPE_T::POLY;
const int S_CURVE = (const int)SHAPE_T::BEZIER;
const int SHAPE_T_RECT = (const int)SHAPE_T::RECTANGLE;
%{
/* for compatibility with old python scripts: */
const int S_SEGMENT = (const int)SHAPE_T::SEGMENT;
const int S_RECT = (const int)SHAPE_T::RECT;
const int S_RECT = (const int)SHAPE_T::RECTANGLE;
const int S_ARC = (const int)SHAPE_T::ARC;
const int S_CIRCLE = (const int)SHAPE_T::CIRCLE;
const int S_POLYGON = (const int)SHAPE_T::POLY;
const int S_CURVE = (const int)SHAPE_T::BEZIER;
const int SHAPE_T_RECT = (const int)SHAPE_T::RECTANGLE;
%}