[Ruby] Undefine close and connect macros defined by Ruby API

headers as we don't need them and they can clash with C++ methods
being wrapped.  Patch from Vit Ondruch in SF#2814430.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2009-06-30 11:50:14 +00:00
commit 4e1763ba69
2 changed files with 12 additions and 1 deletions

View file

@ -10,6 +10,12 @@
#ifdef bind
# undef bind
#endif
#ifdef close
# undef close
#endif
#ifdef connect
# undef connect
#endif
/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */