Fixed compile problem on windows. The code defines a template called max - however, Windows already defines a macro called max. The fix is to undefine the macro.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7478 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bdbca3427e
commit
2caa0e1dd3
1 changed files with 4 additions and 0 deletions
|
|
@ -2,6 +2,10 @@
|
|||
%module example
|
||||
|
||||
%{
|
||||
#ifdef max
|
||||
#undef max
|
||||
#endif
|
||||
|
||||
#include "example.h"
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue