From 32dfafdc39488b9bd18eded0a34178deb2ff6893 Mon Sep 17 00:00:00 2001 From: Charlie Savage Date: Sat, 24 Sep 2005 21:42:07 +0000 Subject: [PATCH] Test would not compile on windows because it defines a template class called Rectangle, but Windows defines a function called Rectangle in wingdi.h. Thus renamed Rectangle to RectangleTest. Note this should not affect any test cases, because they test RectangleInt which is defined as RectangleText. Thus the external api to the produced module does not change. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7517 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/template_classes.i | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SWIG/Examples/test-suite/template_classes.i b/SWIG/Examples/test-suite/template_classes.i index 346fc0d23..a1e604e5b 100644 --- a/SWIG/Examples/test-suite/template_classes.i +++ b/SWIG/Examples/test-suite/template_classes.i @@ -3,6 +3,9 @@ %module template_classes +%{ +%} + %inline %{ template @@ -14,7 +17,7 @@ private: }; template -class Rectangle { +class RectangleTest { public: Point& getPoint() {return point;} void setPoint(Point& value) {point = value;} @@ -25,6 +28,6 @@ private: %} %template(PointInt) Point; -%template(RectangleInt) Rectangle; +%template(RectangleInt) RectangleTest;