From 48aa345440c0edd079d6122a1cfa597b3013c123 Mon Sep 17 00:00:00 2001 From: Charlie Savage Date: Sat, 24 Sep 2005 21:48:07 +0000 Subject: [PATCH] Fix to compile on Windows. The code defines a type called small, but Windows already defines that type in rpcndr.h. Added code to undef small at the start of the wrapper file. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7518 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/unions.i | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Examples/test-suite/unions.i b/Examples/test-suite/unions.i index 90da33363..49bb85de4 100644 --- a/Examples/test-suite/unions.i +++ b/Examples/test-suite/unions.i @@ -4,6 +4,14 @@ This testcase checks that unions can be set and read. %module unions +%{ +/* Must undefine small to work on Windows. small is defined as a +char in rpcndr.h */ +#ifdef small +#undef small +#endif +%} + %inline %{ typedef struct SmallStruct {