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:
parent
32dfafdc39
commit
42f840281d
1 changed files with 8 additions and 0 deletions
|
|
@ -4,6 +4,14 @@ This testcase checks that unions can be set and read.
|
||||||
|
|
||||||
%module unions
|
%module unions
|
||||||
|
|
||||||
|
%{
|
||||||
|
/* Must undefine small to work on Windows. small is defined as a
|
||||||
|
char in rpcndr.h */
|
||||||
|
#ifdef small
|
||||||
|
#undef small
|
||||||
|
#endif
|
||||||
|
%}
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
typedef struct SmallStruct {
|
typedef struct SmallStruct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue