fix example max macro/template and external max macro conflicts

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7449 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-09-16 00:35:38 +00:00
commit e4f17f50aa
8 changed files with 49 additions and 0 deletions

View file

@ -19,6 +19,12 @@ FIELD(b, NEXT_CONST);
} MyStruct_t;
%}
%{
#ifdef max
#undef max
#endif
%}
// bug #994301
%inline %{
#define max(a,b) ((a) > (b) ? (a) : (b))