Fixes global namespace pollution from Ruby\'s win32.h

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10044 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-10-25 23:45:44 +00:00
commit 1c163430e3

View file

@ -1,5 +1,14 @@
#include <ruby.h>
/* Remove global macros defined in Ruby's win32.h */
#ifdef write
# undef write
#endif
#ifdef read
# undef read
#endif
/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
#ifndef NUM2LL
#define NUM2LL(x) NUM2LONG((x))