diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2007-10-25 23:45:44 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2007-10-25 23:45:44 +0000 |
commit | 1c163430e347227e7445eaeb7a2bbed21bfebebc (patch) | |
tree | a6ad61497acb5d39cf979b31bfb7608b69596cf2 | |
parent | d1dabb72310fb46a258a302d559665b4b866280a (diff) | |
download | swig-1c163430e347227e7445eaeb7a2bbed21bfebebc.tar.gz |
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
-rw-r--r-- | Lib/ruby/rubyhead.swg | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/ruby/rubyhead.swg b/Lib/ruby/rubyhead.swg index 435e8cd3e..f0eed4748 100644 --- a/Lib/ruby/rubyhead.swg +++ b/Lib/ruby/rubyhead.swg @@ -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)) |