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@7518 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Charlie Savage 2005-09-24 21:48:07 +00:00
commit 42f840281d

View file

@ -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 {