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:
parent
d1dabb7231
commit
1c163430e3
1 changed files with 9 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue