[Ruby] Improve support for Ruby 1.9 under GCC. Addresses part of SF#2859614.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11775 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
02eb6a81d1
commit
ab06b22bab
2 changed files with 13 additions and 0 deletions
|
|
@ -1,5 +1,14 @@
|
|||
#include <ruby.h>
|
||||
|
||||
/* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
|
||||
* breaks using rb_intern as an lvalue, as SWIG does. We work around this
|
||||
* issue for now by disabling this.
|
||||
* https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645
|
||||
*/
|
||||
#ifdef rb_intern
|
||||
# undef rb_intern
|
||||
#endif
|
||||
|
||||
/* Remove global macros defined in Ruby's win32.h */
|
||||
#ifdef write
|
||||
# undef write
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue