[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,6 +1,10 @@
|
||||||
Version 1.3.41 (in progress)
|
Version 1.3.41 (in progress)
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
2009-12-04: olly
|
||||||
|
[Ruby] Improve support for Ruby 1.9 under GCC. Addresses part of
|
||||||
|
SF#2859614.
|
||||||
|
|
||||||
2009-12-04: olly
|
2009-12-04: olly
|
||||||
Fix handling of modulo operator (%) in constant expressions
|
Fix handling of modulo operator (%) in constant expressions
|
||||||
(SF#2818562).
|
(SF#2818562).
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,14 @@
|
||||||
#include <ruby.h>
|
#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 */
|
/* Remove global macros defined in Ruby's win32.h */
|
||||||
#ifdef write
|
#ifdef write
|
||||||
# undef write
|
# undef write
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue